Don't use handler when in desktop build

This commit is contained in:
Ruud
2012-12-17 12:00:42 +01:00
parent 24b341005e
commit b680d84cba
+2 -1
View File
@@ -53,7 +53,8 @@ class Core(Plugin):
addEvent('setting.save.core.api_key', self.checkApikey)
# Make sure we can close-down with ctrl+c properly
self.signalHandler()
if not Env.get('desktop'):
self.signalHandler()
def md5Password(self, value):
return md5(value.encode(Env.get('encoding'))) if value else ''