From e3bb347a12ad929619a51b37f0ca48dcfe46b731 Mon Sep 17 00:00:00 2001 From: Ricky Kresslein Date: Fri, 22 Apr 2022 10:30:19 +0300 Subject: Add tags to tasks (Issue #8) --- src/ui/preferences_window.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/ui/preferences_window.rs') 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, #[template_child] pub show_daily_sums_switch: TemplateChild, + #[template_child] + pub show_tags_switch: TemplateChild, } #[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(); + }); } } -- cgit 1.4.1