mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
create separated wrapper for reload action
This commit is contained in:
parent
baea14de95
commit
b4dee17768
16 changed files with 144 additions and 64 deletions
11
src/app.rs
11
src/app.rs
|
|
@ -41,8 +41,6 @@ impl App {
|
|||
SimpleAction::new_stateful(&uuid_string_random(), None, &default_state);
|
||||
let action_page_history_forward =
|
||||
SimpleAction::new_stateful(&uuid_string_random(), None, &default_state);
|
||||
let action_page_reload =
|
||||
SimpleAction::new_stateful(&uuid_string_random(), None, &default_state);
|
||||
|
||||
// Init GTK
|
||||
let gobject = Application::builder()
|
||||
|
|
@ -57,7 +55,6 @@ impl App {
|
|||
action_page_home.clone(),
|
||||
action_page_history_back.clone(),
|
||||
action_page_history_forward.clone(),
|
||||
action_page_reload.clone(),
|
||||
));
|
||||
|
||||
// Init events
|
||||
|
|
@ -209,11 +206,15 @@ impl App {
|
|||
),
|
||||
&["<Primary>p"],
|
||||
),
|
||||
// @TODO
|
||||
(
|
||||
format!("win.{}", action_page_reload.name()),
|
||||
format!(
|
||||
"{}.{}",
|
||||
browser.window().action().id(),
|
||||
browser.window().action().reload().id()
|
||||
),
|
||||
&["<Primary>r"],
|
||||
),
|
||||
// @TODO
|
||||
(
|
||||
format!("win.{}", action_page_history_back.name()),
|
||||
&["<Primary>Left"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue