delegate history_snap action to protocol driver implementation

This commit is contained in:
yggverse 2025-03-12 11:00:16 +02:00
parent 68b3119bb1
commit 33d5d414ac
16 changed files with 124 additions and 147 deletions

View file

@ -93,16 +93,12 @@ impl Window {
action.history_back.connect_activate({
let tab = tab.clone();
move |position| {
tab.history_back(position);
}
move |position| tab.history_back(position)
});
action.history_forward.connect_activate({
let tab = tab.clone();
move |position| {
tab.history_forward(position);
}
move |position| tab.history_forward(position)
});
action.load.on_activate({
@ -114,9 +110,7 @@ impl Window {
action.open.on_activate({
let tab = tab.clone();
move |position, request| {
tab.open(position, request, true);
}
move |position, request| tab.open(position, request)
});
// Init struct