[hamster-applet] loading tree after display so to work around some of the quirks



commit c896d1a6e5a252158d7fed9d1558c087f5d761e9
Author: Toms Bauģis <toms baugis gmail com>
Date:   Thu May 6 16:40:42 2010 +0100

    loading tree after display so to work around some of the quirks

 src/hamster/applet.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/hamster/applet.py b/src/hamster/applet.py
index 71e22bb..fe0edfe 100755
--- a/src/hamster/applet.py
+++ b/src/hamster/applet.py
@@ -440,9 +440,6 @@ class HamsterApplet(object):
             self.window.hide()
             return True
 
-        self.load_day() # reload day each time before showing to avoid outdated last activity
-        self.update_label() #update also label, otherwise we can get 1 minute difference in durations (due to timers refreshed once a minute)
-
         self.position_popup()
 
 
@@ -493,6 +490,9 @@ class HamsterApplet(object):
         self.window.present()
         self.new_name.grab_focus()
 
+        self.load_day() # reload day each time before showing to avoid outdated last activity
+        self.update_label() #update also label, otherwise we can get 1 minute difference in durations (due to timers refreshed once a minute)
+
 
     """events"""
     def on_window_state_changed(self, window, event):



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