[chronojump] updateRestTimes each second



commit f0bd4a58a96f8ec10fe7bd5bbb339fb55015dc99
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Nov 14 00:00:25 2016 +0100

    updateRestTimes each second

 src/gui/chronojump.cs |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index ad6ef6e..d3b0452 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -625,7 +625,8 @@ public partial class ChronoJumpWindow
 
                restTime = new RestTime();
                updatingRestTimes = true;
-               GLib.Timeout.Add(5000, new GLib.TimeoutHandler(updateRestTimes)); //each 5s
+               //GLib.Timeout.Add(5000, new GLib.TimeoutHandler(updateRestTimes)); //each 5s
+               GLib.Timeout.Add(1000, new GLib.TimeoutHandler(updateRestTimes)); //each s, better for don't 
have problems sorting data on treeview
 
 
                /*
@@ -4080,7 +4081,7 @@ public partial class ChronoJumpWindow
                //chronojumpWindowTestsNext();
        }
 
-       //called each 5 seconds and after a test
+       //called each second and after a test
        bool updateRestTimes()
        {
                if(! updatingRestTimes)


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