mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
reorganize reload action, add middle click handler
This commit is contained in:
parent
3ee6a03c30
commit
8b4d184ad7
5 changed files with 80 additions and 20 deletions
13
src/app/browser/window/tab/item/action/reload.rs
Normal file
13
src/app/browser/window/tab/item/action/reload.rs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
use gtk::{gio::SimpleAction, glib::uuid_string_random};
|
||||
|
||||
pub trait Reload {
|
||||
fn reload() -> Self;
|
||||
}
|
||||
|
||||
impl Reload for SimpleAction {
|
||||
fn reload() -> Self {
|
||||
let reload = SimpleAction::new(&uuid_string_random(), None);
|
||||
reload.set_enabled(false);
|
||||
reload
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue