mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
implement proxy settings dialog (rules tab)
This commit is contained in:
parent
b548fb16d3
commit
e548efc93f
12 changed files with 660 additions and 12 deletions
|
|
@ -1,16 +1,18 @@
|
|||
mod about;
|
||||
mod action;
|
||||
mod database;
|
||||
mod proxy;
|
||||
mod widget;
|
||||
pub mod window;
|
||||
|
||||
use about::About;
|
||||
use action::Action;
|
||||
use proxy::Proxy;
|
||||
use widget::Widget;
|
||||
use window::Window;
|
||||
|
||||
use crate::Profile;
|
||||
use adw::{AboutDialog, Application, prelude::AdwDialogExt};
|
||||
use adw::{AboutDialog, Application, PreferencesDialog, prelude::AdwDialogExt};
|
||||
use anyhow::Result;
|
||||
use gtk::{
|
||||
FileLauncher,
|
||||
|
|
@ -91,6 +93,12 @@ impl Browser {
|
|||
}
|
||||
});
|
||||
|
||||
action.proxy.connect_activate({
|
||||
let profile = profile.clone();
|
||||
let window = window.clone();
|
||||
move || PreferencesDialog::proxy(&profile).present(Some(&window.g_box))
|
||||
});
|
||||
|
||||
// Return new activated `Self`
|
||||
Self {
|
||||
action,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue