mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
delegate history_snap action to protocol driver implementation
This commit is contained in:
parent
68b3119bb1
commit
33d5d414ac
16 changed files with 124 additions and 147 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue