From 8354f9c144e9215945908f7c0a32a3104c1d98ab Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 30 Jun 2012 15:09:27 +0200 Subject: [PATCH] Only notify once on update. fix #515 --- couchpotato/core/_base/updater/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/_base/updater/main.py b/couchpotato/core/_base/updater/main.py index bc7f869a..f148b4bd 100644 --- a/couchpotato/core/_base/updater/main.py +++ b/couchpotato/core/_base/updater/main.py @@ -20,6 +20,8 @@ log = CPLog(__name__) class Updater(Plugin): + available_notified = False + def __init__(self): if Env.get('desktop'): @@ -69,8 +71,9 @@ class Updater(Plugin): return if self.updater.check(): - if self.conf('notification') and not self.conf('automatic'): + if not self.available_notified and self.conf('notification') and not self.conf('automatic'): fireEvent('updater.available', message = 'A new update is available', data = self.updater.info()) + self.available_notified = True return True return False