Include module for desktop build
This commit is contained in:
@@ -25,6 +25,7 @@ if Env.get('desktop'):
|
||||
|
||||
# Events to desktop
|
||||
addEvent('app.after_shutdown', desktop.afterShutdown)
|
||||
addEvent('app.load', desktop.onAppLoad, priority = 110)
|
||||
|
||||
def onClose(self, event):
|
||||
return fireEvent('app.shutdown', single = True)
|
||||
|
||||
@@ -29,7 +29,7 @@ class Downloader(Plugin):
|
||||
pass
|
||||
|
||||
def getDownloadStatus(self, data = {}, movie = {}):
|
||||
pass
|
||||
return False
|
||||
|
||||
def createNzbName(self, data, movie):
|
||||
tag = self.cpTag(movie)
|
||||
|
||||
@@ -192,6 +192,7 @@ class Plugin(object):
|
||||
|
||||
def doShutdown(self):
|
||||
self.shuttingDown(True)
|
||||
return True
|
||||
|
||||
def shuttingDown(self, value = None):
|
||||
if value is None:
|
||||
|
||||
Reference in New Issue
Block a user