implement proxy settings dialog (rules tab)

This commit is contained in:
yggverse 2025-07-25 13:41:21 +03:00
parent b548fb16d3
commit e548efc93f
12 changed files with 660 additions and 12 deletions

View file

@ -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,