about summary refs log tree commit diff
path: root/src/ui
diff options
context:
space:
mode:
authorRicky Kresslein <rk@lakoliu.com>2023-06-02 12:00:59 +0200
committerRicky Kresslein <rk@lakoliu.com>2023-06-02 12:00:59 +0200
commit432362b9c3c028d7525fec0bdfbd3660355ea894 (patch)
tree27aabe6a4497c6cc535b92c65bff04d46d5add3c /src/ui
parenteda4e519c3c2f50f020cfab385a80abc790d9fbb (diff)
downloadFurtherance-432362b9c3c028d7525fec0bdfbd3660355ea894.tar.zst
#107: Fix pomodoro timer 1 minute off
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/preferences_window.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/preferences_window.rs b/src/ui/preferences_window.rs
index ac0021d..c7f6344 100644
--- a/src/ui/preferences_window.rs
+++ b/src/ui/preferences_window.rs
@@ -216,9 +216,10 @@ impl FurPreferencesWindow {
             .connect_enable_expansion_notify(move |_| {
                 let window = FurtheranceWindow::default();
                 window.refresh_timer();
-            });
+        });
 
-        imp.pomodoro_spin.connect_value_changed(move |_| {
+        imp.pomodoro_spin.connect_value_changed(move |new_val| {
+            settings_manager::set_int("pomodoro-time", new_val.value() as i32);
             let window = FurtheranceWindow::default();
             window.refresh_timer();
         });