implement recent bookmarks menu item

This commit is contained in:
yggverse 2025-01-12 00:38:22 +02:00
parent c335207b28
commit 9e86e9b29f
13 changed files with 155 additions and 60 deletions

View file

@ -6,6 +6,7 @@ mod find;
mod history_back;
mod history_forward;
mod home;
mod open;
mod pin;
mod reload;
mod save_as;
@ -19,6 +20,7 @@ use find::Find;
use history_back::HistoryBack;
use history_forward::HistoryForward;
use home::Home;
use open::Open;
use pin::Pin;
use reload::Reload;
use save_as::SaveAs;
@ -44,6 +46,7 @@ pub struct Action {
pub history_back: Rc<HistoryBack>,
pub history_forward: Rc<HistoryForward>,
pub home: Rc<Home>,
pub open: Rc<Open>,
pub pin: Rc<Pin>,
pub reload: Rc<Reload>,
pub save_as: Rc<SaveAs>,
@ -67,6 +70,7 @@ impl Action {
let history_back = Rc::new(HistoryBack::new());
let history_forward = Rc::new(HistoryForward::new());
let home = Rc::new(Home::new());
let open = Rc::new(Open::new());
let pin = Rc::new(Pin::new());
let reload = Rc::new(Reload::new());
let save_as = Rc::new(SaveAs::new());
@ -87,6 +91,7 @@ impl Action {
simple_action_group.add_action(&history_back.simple_action);
simple_action_group.add_action(&history_forward.simple_action);
simple_action_group.add_action(&home.simple_action);
simple_action_group.add_action(&open.simple_action);
simple_action_group.add_action(&pin.simple_action);
simple_action_group.add_action(&reload.simple_action);
simple_action_group.add_action(&save_as.simple_action);
@ -102,6 +107,7 @@ impl Action {
history_back,
history_forward,
home,
open,
pin,
reload,
save_as,