diff options
author | Ricky Kresslein <rk@lakoliu.com> | 2023-06-04 17:58:41 +0200 |
---|---|---|
committer | Ricky Kresslein <rk@lakoliu.com> | 2023-06-04 17:58:41 +0200 |
commit | c7d283c483a24bccc501a8a66cfd2a60b43ffb0f (patch) | |
tree | f683013bdecd9e509d2b1ef7401fa31f4183936c /src/ui/preferences_window.rs | |
parent | 3cbbabd4aa35342b36dce327794149f0c5704508 (diff) | |
download | Furtherance-c7d283c483a24bccc501a8a66cfd2a60b43ffb0f.tar.zst |
#97: Add 'This Week' and 'Last Week' to reports. Add start of week picker to settings.
Diffstat (limited to 'src/ui/preferences_window.rs')
-rw-r--r-- | src/ui/preferences_window.rs | 5 |
1 files changed, 5 insertions, 0 deletions
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 @@ -76,6 +76,9 @@ mod imp { pub inclusive_total_switch: TemplateChild<gtk::Switch>, #[template_child] + pub week_start_combo: TemplateChild<adw::ComboRow>, + + #[template_child] pub database_loc_row: TemplateChild<adw::ActionRow>, #[template_child] pub database_browse_btn: TemplateChild<gtk::Button>, @@ -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(); |