mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
create separated wrapper for home action
This commit is contained in:
parent
b4dee17768
commit
4afa2c204c
15 changed files with 136 additions and 62 deletions
12
src/app.rs
12
src/app.rs
|
|
@ -35,8 +35,6 @@ impl App {
|
|||
let action_page_close =
|
||||
SimpleAction::new_stateful(&uuid_string_random(), None, &default_state);
|
||||
let action_page_close_all = SimpleAction::new(&uuid_string_random(), None);
|
||||
let action_page_home =
|
||||
SimpleAction::new_stateful(&uuid_string_random(), None, &default_state);
|
||||
let action_page_history_back =
|
||||
SimpleAction::new_stateful(&uuid_string_random(), None, &default_state);
|
||||
let action_page_history_forward =
|
||||
|
|
@ -52,7 +50,6 @@ impl App {
|
|||
profile.clone(),
|
||||
action_page_close.clone(),
|
||||
action_page_close_all.clone(),
|
||||
action_page_home.clone(),
|
||||
action_page_history_back.clone(),
|
||||
action_page_history_forward.clone(),
|
||||
));
|
||||
|
|
@ -214,6 +211,14 @@ impl App {
|
|||
),
|
||||
&["<Primary>r"],
|
||||
),
|
||||
(
|
||||
format!(
|
||||
"{}.{}",
|
||||
browser.window().action().id(),
|
||||
browser.window().action().home().id()
|
||||
),
|
||||
&["<Primary>h"],
|
||||
),
|
||||
// @TODO
|
||||
(
|
||||
format!("win.{}", action_page_history_back.name()),
|
||||
|
|
@ -223,7 +228,6 @@ impl App {
|
|||
format!("win.{}", action_page_history_forward.name()),
|
||||
&["<Primary>Right"],
|
||||
),
|
||||
(format!("win.{}", action_page_home.name()), &["<Primary>h"]),
|
||||
// @TODO page close missed
|
||||
] {
|
||||
gobject.set_accels_for_action(detailed_action_name, &accels);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue