diff options
author | Ricky Kresslein <rk@lakoliu.com> | 2022-04-22 10:30:19 +0300 |
---|---|---|
committer | Ricky Kresslein <rk@lakoliu.com> | 2022-04-22 10:30:19 +0300 |
commit | e3bb347a12ad929619a51b37f0ca48dcfe46b731 (patch) | |
tree | 643d2b973b003e91762af519620e34065953da64 /src/ui/preferences_window.rs | |
parent | 22b05e7c934aee734005e7ba601968334467005c (diff) | |
download | Furtherance-e3bb347a12ad929619a51b37f0ca48dcfe46b731.tar.zst |
Add tags to tasks (Issue #8)
Diffstat (limited to 'src/ui/preferences_window.rs')
-rwxr-xr-x | src/ui/preferences_window.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ui/preferences_window.rs b/src/ui/preferences_window.rs index 1955d09..47a7adc 100755 --- a/src/ui/preferences_window.rs +++ b/src/ui/preferences_window.rs @@ -55,6 +55,8 @@ mod imp { pub show_seconds_switch: TemplateChild<gtk::Switch>, #[template_child] pub show_daily_sums_switch: TemplateChild<gtk::Switch>, + #[template_child] + pub show_tags_switch: TemplateChild<gtk::Switch>, } #[glib::object_subclass] @@ -167,6 +169,12 @@ impl FurPreferencesWindow { "active" ); + settings_manager::bind_property( + "show-tags", + &*imp.show_tags_switch, + "active" + ); + imp.dark_theme_switch.connect_active_notify(move |_|{ let app = FurtheranceApplication::default(); app.update_light_dark(); @@ -191,6 +199,11 @@ impl FurPreferencesWindow { let window = FurtheranceWindow::default(); window.reset_history_box(); }); + + imp.show_tags_switch.connect_active_notify(move |_|{ + let window = FurtheranceWindow::default(); + window.reset_history_box(); + }); } } |