mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
implement separated dialogs for the Bookmarks and History menu items
This commit is contained in:
parent
e548efc93f
commit
ebb38008e1
14 changed files with 378 additions and 171 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue