Skip to content

Commit fecb534

Browse files
committed
OSX: Remove status item on application quit
This ensures application is not leaving empty status item.
1 parent 1b1ed4d commit fecb534

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ui-macos/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ def cmd_show(self, sender):
231231

232232
@objc.IBAction
233233
def cmd_quit(self, sender):
234+
NSStatusBar.systemStatusBar().removeStatusItem_(self.statusitem)
234235
NSApp.performSelector_withObject_afterDelay_(NSApp.terminate_,
235236
None, 0.0)
236237

0 commit comments

Comments
 (0)