Force update check from dropdown

This commit is contained in:
Ruud
2013-05-29 19:03:49 +02:00
parent 91e0452320
commit a4c1480a1a
+3 -4
View File
@@ -33,7 +33,6 @@ class Updater(Plugin):
else:
self.updater = SourceUpdater()
addEvent('app.load', self.autoUpdate)
addEvent('app.load', self.setCrons)
addEvent('updater.info', self.info)
@@ -81,8 +80,8 @@ class Updater(Plugin):
return False
def check(self):
if self.isDisabled():
def check(self, force = False):
if not force and self.isDisabled():
return
if self.updater.check():
@@ -101,7 +100,7 @@ class Updater(Plugin):
def checkView(self):
return jsonified({
'update_available': self.check(),
'update_available': self.check(force = True),
'info': self.updater.info()
})