implement separated dialogs for the Bookmarks and History menu items

This commit is contained in:
yggverse 2025-07-25 15:52:14 +03:00
parent e548efc93f
commit ebb38008e1
14 changed files with 378 additions and 171 deletions

View file

@ -1,12 +1,16 @@
mod about;
mod action;
mod bookmarks;
mod database;
mod history;
mod proxy;
mod widget;
pub mod window;
use about::About;
use action::Action;
use bookmarks::Bookmarks;
use history::History;
use proxy::Proxy;
use widget::Widget;
use window::Window;
@ -93,6 +97,22 @@ impl Browser {
}
});
action.history.connect_activate({
let profile = profile.clone();
let window = window.clone();
move || {
PreferencesDialog::history(&window.action, &profile).present(Some(&window.g_box))
}
});
action.bookmarks.connect_activate({
let profile = profile.clone();
let window = window.clone();
move || {
PreferencesDialog::bookmarks(&window.action, &profile).present(Some(&window.g_box))
}
});
action.proxy.connect_activate({
let profile = profile.clone();
let window = window.clone();