From c7d283c483a24bccc501a8a66cfd2a60b43ffb0f Mon Sep 17 00:00:00 2001 From: Ricky Kresslein Date: Sun, 4 Jun 2023 17:58:41 +0200 Subject: #97: Add 'This Week' and 'Last Week' to reports. Add start of week picker to settings. --- src/ui/preferences_window.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ui/preferences_window.rs') diff --git a/src/ui/preferences_window.rs b/src/ui/preferences_window.rs index bd135de..301250b 100644 --- a/src/ui/preferences_window.rs +++ b/src/ui/preferences_window.rs @@ -75,6 +75,9 @@ mod imp { #[template_child] pub inclusive_total_switch: TemplateChild, + #[template_child] + pub week_start_combo: TemplateChild, + #[template_child] pub database_loc_row: TemplateChild, #[template_child] @@ -186,6 +189,8 @@ impl FurPreferencesWindow { settings_manager::bind_property("inclusive-total", &*imp.inclusive_total_switch, "active"); + settings_manager::bind_property("week-starts", &*imp.week_start_combo, "selected"); + imp.dark_theme_switch.connect_active_notify(move |_| { let app = FurtheranceApplication::default(); app.update_light_dark(); -- cgit 1.4.1