[gnome-break-timer/dylanmccall/20-20-20-rule] settings: Add 20 minute / 20 second choices




commit b82cc872193dcc4efbe72bcdb02b63a402ea68cd
Author: Dylan McCall <dylan dylanmccall ca>
Date:   Sat Dec 19 17:42:12 2020 -0800

    settings: Add 20 minute / 20 second choices
    
    This makes it easier to set up microbreaks according to the 20-20-20
    rule.
    
    Ref #6

 NEWS                                        | 2 ++
 src/settings/microbreak/MicroBreakType.vala | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/NEWS b/NEWS
index b468225..090cbfa 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,8 @@
 gnome-break-timer master
 ========================
 
+* Add break interval and duration choices for the 20-20-20 rule (#6)
+
 gnome-break-timer 2.0.3
 =======================
 
diff --git a/src/settings/microbreak/MicroBreakType.vala b/src/settings/microbreak/MicroBreakType.vala
index a26d1bd..d42f836 100644
--- a/src/settings/microbreak/MicroBreakType.vala
+++ b/src/settings/microbreak/MicroBreakType.vala
@@ -28,8 +28,8 @@ public class MicroBreakType : TimerBreakType {
         GLib.Settings settings = new GLib.Settings (Config.APPLICATION_ID + ".microbreak");
         base ("microbreak", settings);
 
-        this.interval_options = { 240, 300, 360, 480, 600 };
-        this.duration_options = { 15, 30, 45, 60 };
+        this.interval_options = { 240, 300, 360, 600, 1200 };
+        this.duration_options = { 15, 20, 30, 45, 60 };
     }
 
     protected override BreakInfoWidget create_info_widget () {


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