Browse Source

fix switch page event listener

master
yggverse 2 months ago
parent
commit
3d2bca138e
  1. 5
      src/browser/main/tab.rs

5
src/browser/main/tab.rs

@ -55,10 +55,11 @@ impl Tab {
tab.pages.borrow_mut().remove(id); tab.pages.borrow_mut().remove(id);
}); });
self.widget.connect_switch_page({ // Switch page post-event (`connect_switch_page` activates before `page_number` get updated)
self.widget.connect_page_notify({
let action_update = self.action_update.clone(); let action_update = self.action_update.clone();
// Update window header with current page title // Update window header with current page title
move |_, _, _| action_update.activate(None) move |_| action_update.activate(None)
}); });
} }

Loading…
Cancel
Save