Commit fecb5341 authored by Adam Strzelecki's avatar Adam Strzelecki

OSX: Remove status item on application quit

This ensures application is not leaving empty status item.
parent 1b1ed4d4
...@@ -231,6 +231,7 @@ class SshuttleController(NSObject): ...@@ -231,6 +231,7 @@ class SshuttleController(NSObject):
@objc.IBAction @objc.IBAction
def cmd_quit(self, sender): def cmd_quit(self, sender):
NSStatusBar.systemStatusBar().removeStatusItem_(self.statusitem)
NSApp.performSelector_withObject_afterDelay_(NSApp.terminate_, NSApp.performSelector_withObject_afterDelay_(NSApp.terminate_,
None, 0.0) None, 0.0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment