summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--portato/plugins/new_version.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/portato/plugins/new_version.py b/portato/plugins/new_version.py
index 988b173..47f6719 100644
--- a/portato/plugins/new_version.py
+++ b/portato/plugins/new_version.py
@@ -5,15 +5,18 @@ except ImportError:
from threading import Thread
+import gobject
+
from portato.helper import debug, _
from portato import get_listener
from portato.constants import VERSION, APP_ICON, APP
def find_thread (rev):
b = branch.Branch.open("lp:portato")
-
+
+ debug("Installed rev: %s - Current rev: %s", rev, b.revno())
if int(rev) < int(b.revno()):
- get_listener().send_notify(base = "New Portato Live Version Found", descr = "You have rev. %s, but the most recent revision is %s." % (rev, b.revno()), icon = APP_ICON)
+ gobject.idle_add(get_listener().send_notify, base = "New Portato Live Version Found", descr = "You have rev. %s, but the most recent revision is %s." % (rev, b.revno()), icon = APP_ICON)
def find_version (*args, **kwargs):
if not all((plugin, branch)):