[hamster-applet] don't go for updates if there were no changes
- From: Toms Baugis <tbaugis src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [hamster-applet] don't go for updates if there were no changes
- Date: Sat, 16 Jan 2010 18:14:50 +0000 (UTC)
commit e57198b213b6d524702ddddc9f85f46996d2f5c0
Author: Toms Bauģis <toms baugis gmail com>
Date: Sat Jan 16 18:14:20 2010 +0000
don't go for updates if there were no changes
hamster/preferences.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/hamster/preferences.py b/hamster/preferences.py
index 29466f8..698a18b 100755
--- a/hamster/preferences.py
+++ b/hamster/preferences.py
@@ -172,7 +172,7 @@ class PreferencesEditor:
self.prev_selected_activity = None
self.prev_selected_category = None
-
+
# disable notification thing if pynotify is not available
try:
import pynotify
@@ -201,10 +201,11 @@ class PreferencesEditor:
buf = self.get_widget("autocomplete_tags")
updated_tags = buf.get_text(buf.get_start_iter(), buf.get_end_iter(), 0) \
.decode("utf-8")
-
if updated_tags == self.tags:
return
+ self.tags = updated_tags
+
runtime.storage.update_autocomplete_tags(updated_tags)
@@ -674,11 +675,10 @@ class PreferencesEditor:
day_start = self.day_start.get_time()
if not day_start:
return
-
+
day_start = day_start.hour * 60 + day_start.minute
conf.set("day_start_minutes", day_start)
def on_preferences_window_destroy(self, window):
self.window = None
-
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]