|
@ -163,6 +163,7 @@ class CouchPotatoApp(wx.App, SoftwareUpdate): |
|
|
events = {} |
|
|
events = {} |
|
|
restart = False |
|
|
restart = False |
|
|
closing = False |
|
|
closing = False |
|
|
|
|
|
triggered_onClose = False |
|
|
|
|
|
|
|
|
def OnInit(self): |
|
|
def OnInit(self): |
|
|
|
|
|
|
|
@ -198,7 +199,9 @@ class CouchPotatoApp(wx.App, SoftwareUpdate): |
|
|
self.closing = True |
|
|
self.closing = True |
|
|
self.frame.tbicon.onTaskBarClose(event) |
|
|
self.frame.tbicon.onTaskBarClose(event) |
|
|
|
|
|
|
|
|
onClose = self.events.get('onClose') |
|
|
onClose = self.events.get('onClose') |
|
|
|
|
|
if onClose and not self.triggered_onClose: |
|
|
|
|
|
self.triggered_onClose = True |
|
|
onClose(event) |
|
|
onClose(event) |
|
|
|
|
|
|
|
|
def afterShutdown(self, restart = False): |
|
|
def afterShutdown(self, restart = False): |
|
|