Force update check from dropdown
This commit is contained in:
@@ -33,7 +33,6 @@ class Updater(Plugin):
|
|||||||
else:
|
else:
|
||||||
self.updater = SourceUpdater()
|
self.updater = SourceUpdater()
|
||||||
|
|
||||||
addEvent('app.load', self.autoUpdate)
|
|
||||||
addEvent('app.load', self.setCrons)
|
addEvent('app.load', self.setCrons)
|
||||||
addEvent('updater.info', self.info)
|
addEvent('updater.info', self.info)
|
||||||
|
|
||||||
@@ -81,8 +80,8 @@ class Updater(Plugin):
|
|||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def check(self):
|
def check(self, force = False):
|
||||||
if self.isDisabled():
|
if not force and self.isDisabled():
|
||||||
return
|
return
|
||||||
|
|
||||||
if self.updater.check():
|
if self.updater.check():
|
||||||
@@ -101,7 +100,7 @@ class Updater(Plugin):
|
|||||||
|
|
||||||
def checkView(self):
|
def checkView(self):
|
||||||
return jsonified({
|
return jsonified({
|
||||||
'update_available': self.check(),
|
'update_available': self.check(force = True),
|
||||||
'info': self.updater.info()
|
'info': self.updater.info()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user