Bind quickscan to class
This commit is contained in:
@@ -45,9 +45,7 @@ class Manage(Plugin):
|
|||||||
})
|
})
|
||||||
|
|
||||||
if not Env.get('dev'):
|
if not Env.get('dev'):
|
||||||
def updateLibrary():
|
addEvent('app.load', self.updateLibraryQuick)
|
||||||
self.updateLibrary(full = False)
|
|
||||||
addEvent('app.load', updateLibrary)
|
|
||||||
|
|
||||||
def getProgress(self):
|
def getProgress(self):
|
||||||
return {
|
return {
|
||||||
@@ -62,6 +60,8 @@ class Manage(Plugin):
|
|||||||
'success': True
|
'success': True
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def updateLibraryQuick(self):
|
||||||
|
return self.updateLibrary(full = False)
|
||||||
|
|
||||||
def updateLibrary(self, full = True):
|
def updateLibrary(self, full = True):
|
||||||
last_update = float(Env.prop('manage.last_update', default = 0))
|
last_update = float(Env.prop('manage.last_update', default = 0))
|
||||||
|
|||||||
Reference in New Issue
Block a user