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

@ -13,14 +13,15 @@ pub struct Header {
}
impl Header {
// Construct
// Constructors
pub fn new(
(browser_action, window_action): (&Rc<BrowserAction>, &Rc<WindowAction>),
profile: &Rc<Profile>,
tab_view: &TabView,
) -> Self {
// Init components
let bar = Bar::new((browser_action, window_action), profile, tab_view);
let bar = Rc::new(Bar::new((browser_action, window_action), profile, tab_view));
// Return new struct
Self {