Prio on launch browser
This commit is contained in:
1 parent
6bf6ffd4f8
commit
33a8eb9fb1
4 files changed
+22
-9
No files matched your search
@@ -37,7 +37,7 @@ config = [{
|
||||
},
|
||||
{
|
||||
'name': 'launch_browser',
|
||||
'default': 1,
|
||||
'default': True,
|
||||
'type': 'bool',
|
||||
'description': 'Launch the browser when I start.',
|
||||
'wizard': True,
|
||||
|
||||
@@ -26,7 +26,7 @@ class Core(Plugin):
|
||||
|
||||
addEvent('app.crappy_shutdown', self.shutdown)
|
||||
addEvent('app.crappy_restart', self.crappyRestart)
|
||||
addEvent('app.load', self.launchBrowser, priority = 100)
|
||||
addEvent('app.load', self.launchBrowser, priority = 1)
|
||||
addEvent('app.base_url', self.createBaseUrl)
|
||||
|
||||
addEvent('setting.save.core.password', self.md5Password)
|
||||
|
||||
@@ -13,7 +13,7 @@ def runHandler(name, handler, *args, **kwargs):
|
||||
except:
|
||||
log.error('Error in event "%s", that wasn\'nt caught: %s' % (name, traceback.format_exc()))
|
||||
|
||||
def addEvent(name, handler, priority = 0):
|
||||
def addEvent(name, handler, priority = 100):
|
||||
|
||||
if events.get(name):
|
||||
e = events[name]
|
||||
|
||||
Reference in new issue
Block a user