mirror of
https://github.com/sshuttle/sshuttle.git
synced 2024-11-14 20:14:28 +01: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
|
||||
def cmd_quit(self, sender):
|
||||
NSStatusBar.systemStatusBar().removeStatusItem_(self.statusitem)
|
||||
NSApp.performSelector_withObject_afterDelay_(NSApp.terminate_,
|
||||
None, 0.0)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user