[hamster-applet] whatever happens will happen again
- From: Toms Baugis <tbaugis src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [hamster-applet] whatever happens will happen again
- Date: Mon, 18 Jan 2010 23:16:28 +0000 (UTC)
commit cef81108530193cb4ca281c00be95fb7820f4c31
Author: Toms Bauģis <toms baugis gmail com>
Date: Mon Jan 18 23:15:54 2010 +0000
whatever happens will happen again
hamster/applet.py | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
---
diff --git a/hamster/applet.py b/hamster/applet.py
index 89282e1..2d88896 100755
--- a/hamster/applet.py
+++ b/hamster/applet.py
@@ -289,14 +289,15 @@ class HamsterApplet(object):
"""UI functions"""
def refresh_hamster(self):
"""refresh hamster every x secs - load today, check last activity etc."""
+ try:
+ #if we the day view is visible - update day's durations
+ if self.button.get_active():
+ self.load_day()
- #if we the day view is visible - update day's durations
- if self.button.get_active():
- self.load_day()
-
- self.update_label()
- self.check_user()
- return True
+ self.update_label()
+ self.check_user()
+ finally: # we want to go on no matter what, so in case of any error we find out about it sooner
+ return True
def update_label(self):
if self.last_activity and self.last_activity['end_time'] is None:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]