Cleanup
This commit is contained in:
@@ -1,9 +1,8 @@
|
|||||||
from couchpotato.core.event import fireEvent
|
from couchpotato.core.event import fireEvent, addEvent
|
||||||
from couchpotato.core.logger import CPLog
|
from couchpotato.core.logger import CPLog
|
||||||
from couchpotato.core.notifications.base import Notification
|
from couchpotato.core.notifications.base import Notification
|
||||||
from couchpotato.environment import Env
|
from couchpotato.environment import Env
|
||||||
from gntp import notifier
|
from gntp import notifier
|
||||||
import logging
|
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
log = CPLog(__name__)
|
log = CPLog(__name__)
|
||||||
@@ -17,7 +16,7 @@ class Growl(Notification):
|
|||||||
super(Growl, self).__init__()
|
super(Growl, self).__init__()
|
||||||
|
|
||||||
if self.isEnabled():
|
if self.isEnabled():
|
||||||
self.register()
|
addEvent('app.load', self.register)
|
||||||
|
|
||||||
def register(self):
|
def register(self):
|
||||||
if self.registered: return
|
if self.registered: return
|
||||||
|
|||||||
Reference in New Issue
Block a user