mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
begin request entry refactory
This commit is contained in:
parent
5255708be3
commit
e7bd5bbdc6
24 changed files with 351 additions and 849 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue