Browse Source

Only trigger onClose when it's set

tags/build/2.5.2
Ruud 11 years ago
parent
commit
9b35a0fb20
  1. 3
      Desktop.py

3
Desktop.py

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

Loading…
Cancel
Save