[gnome-clocks] Reset seconds when using preset timers



commit f8af3dae120a060765fb776db092a42c8b94d480
Author: Anthony Aromin <menekoiskawaii gmail com>
Date:   Tue Jan 11 20:32:16 2022 +0800

    Reset seconds when using preset timers
    
    Fixes #211

 src/timer-setup.vala | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/timer-setup.vala b/src/timer-setup.vala
index 69129f91..4f572717 100644
--- a/src/timer-setup.vala
+++ b/src/timer-setup.vala
@@ -35,7 +35,7 @@ public class Setup : Gtk.Box {
 
     public Setup () {
         var actions = new SimpleActionGroup ();
-        // The duration here represends a number of minutes
+        // The duration here represents a number of minutes
         var duration_type = new GLib.VariantType ("i");
         var set_duration_action = new SimpleAction ("set-duration", duration_type);
         set_duration_action.activate.connect ((action, param) => {
@@ -44,6 +44,7 @@ public class Setup : Gtk.Box {
             var minutes = total_minutes - hours * 60;
             this.h_spinbutton.value = hours;
             this.m_spinbutton.value = minutes;
+            this.s_spinbutton.value = 0;
         });
         actions.add_action (set_duration_action);
         insert_action_group ("timer-setup", actions);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]