OSX: Remove status item on application quit

This ensures application is not leaving empty status item.
This commit is contained in:
Adam Strzelecki 2015-04-20 20:23:20 +02:00
parent 1b1ed4d495
commit fecb53413d

View File

@ -231,6 +231,7 @@ class SshuttleController(NSObject):
@objc.IBAction
def cmd_quit(self, sender):
NSStatusBar.systemStatusBar().removeStatusItem_(self.statusitem)
NSApp.performSelector_withObject_afterDelay_(NSApp.terminate_,
None, 0.0)