mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
refresh proxy indication for all tabs on settings change, short local var names
This commit is contained in:
parent
6d419f9234
commit
44661c5136
4 changed files with 88 additions and 61 deletions
|
|
@ -15,11 +15,11 @@ use rule::Rule;
|
|||
use std::rc::Rc;
|
||||
|
||||
pub trait Proxy {
|
||||
fn proxy(profile: &Rc<Profile>) -> Self;
|
||||
fn proxy(profile: &Rc<Profile>, on_close: impl Fn() + 'static) -> Self;
|
||||
}
|
||||
|
||||
impl Proxy for adw::PreferencesDialog {
|
||||
fn proxy(profile: &Rc<Profile>) -> Self {
|
||||
fn proxy(profile: &Rc<Profile>, on_close: impl Fn() + 'static) -> Self {
|
||||
// Init components
|
||||
let ignore = Ignore::build(profile);
|
||||
let misc = Misc::build(profile);
|
||||
|
|
@ -98,6 +98,8 @@ impl Proxy for adw::PreferencesDialog {
|
|||
.proxy
|
||||
.misc
|
||||
.set_highlight_request_entry(misc.is_highlight_request_entry());
|
||||
|
||||
on_close()
|
||||
}
|
||||
});
|
||||
d
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue