Add hash and date to update available notification. fix #1883
This commit is contained in:
1 parent
8c77d0d775
commit
b1942678b4
1 file changed
+3
-1
@@ -85,7 +85,9 @@ class Updater(Plugin):
|
|||||||
|
|
||||||
if self.updater.check():
|
if self.updater.check():
|
||||||
if not self.available_notified and 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())
|
info = self.updater.info()
|
||||||
|
version_date = datetime.fromtimestamp(info['update_version']['date'])
|
||||||
|
fireEvent('updater.available', message = 'A new update with hash "%s" is available, this version is from %s' % (info['update_version']['hash'], version_date), data = info)
|
||||||
self.available_notified = True
|
self.available_notified = True
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user