reorganize home action, add middle click handler

This commit is contained in:
yggverse 2025-01-26 13:07:20 +02:00
parent 418b04c86c
commit 3ee6a03c30
5 changed files with 93 additions and 30 deletions

View file

@ -38,10 +38,10 @@ impl Navigation {
) -> Self {
// init children components
let home = Button::home(window_action);
let history = Box::history((window_action, tab_action, item_action));
let reload = Button::reload(window_action);
let request = Rc::new(Request::build((browser_action, item_action)));
let home = Button::home((window_action, tab_action, item_action), &request);
let bookmark = Button::bookmark(window_action);
// init main widget
@ -80,11 +80,6 @@ impl Navigation {
.get(&self.request.strip_prefix())
.is_some(),
);
self.home.set_sensitive(
self.request
.home()
.is_some_and(|home| home.to_string() != request),
);
}
pub fn clean(