mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-04-15 14:58:29 +02:00
OSX: Remove status item on application quit
This ensures application is not leaving empty status item.
This commit is contained in:
parent
1b1ed4d495
commit
fecb53413d
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user