begin request entry refactory

This commit is contained in:
yggverse 2025-01-26 19:58:24 +02:00
parent 5255708be3
commit e7bd5bbdc6
24 changed files with 351 additions and 849 deletions

View file

@ -77,8 +77,8 @@ impl Browser {
action.escape.connect_activate({
let widget = widget.clone();
let window = window.clone();
move |tab_item_id| {
window.escape(tab_item_id);
move |_, _| {
window.escape();
widget.application_window.set_focus(gtk::Window::NONE);
}
});
@ -98,11 +98,6 @@ impl Browser {
}
});
action.update.connect_activate({
let window = window.clone();
move |tab_item_id| window.update(tab_item_id)
});
// Return new activated `Self`
Self {
action,
@ -185,10 +180,6 @@ impl Browser {
self.widget.application_window.present();
self
}
pub fn update(&self) {
self.window.update(None);
}
}
// Tools