mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +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
|
|
@ -2,11 +2,13 @@ mod about;
|
|||
mod close;
|
||||
mod debug;
|
||||
mod profile;
|
||||
mod proxy;
|
||||
|
||||
use about::About;
|
||||
use close::Close;
|
||||
use debug::Debug;
|
||||
use profile::Profile;
|
||||
use proxy::Proxy;
|
||||
|
||||
use gtk::{
|
||||
gio::SimpleActionGroup,
|
||||
|
|
@ -22,6 +24,7 @@ pub struct Action {
|
|||
pub close: Rc<Close>,
|
||||
pub debug: Rc<Debug>,
|
||||
pub profile: Rc<Profile>,
|
||||
pub proxy: Rc<Proxy>,
|
||||
// Group
|
||||
pub id: GString,
|
||||
pub simple_action_group: SimpleActionGroup,
|
||||
|
|
@ -43,6 +46,7 @@ impl Action {
|
|||
let close = Rc::new(Close::new());
|
||||
let debug = Rc::new(Debug::new());
|
||||
let profile = Rc::new(Profile::new());
|
||||
let proxy = Rc::new(Proxy::new());
|
||||
|
||||
// Generate unique group ID
|
||||
let id = uuid_string_random();
|
||||
|
|
@ -55,6 +59,7 @@ impl Action {
|
|||
simple_action_group.add_action(&close.simple_action);
|
||||
simple_action_group.add_action(&debug.simple_action);
|
||||
simple_action_group.add_action(&profile.simple_action);
|
||||
simple_action_group.add_action(&proxy.simple_action);
|
||||
|
||||
// Done
|
||||
Self {
|
||||
|
|
@ -62,6 +67,7 @@ impl Action {
|
|||
close,
|
||||
debug,
|
||||
profile,
|
||||
proxy,
|
||||
id,
|
||||
simple_action_group,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue