swiftbar / SwiftBar

Powerful macOS menu bar customization tool
https://swiftbar.app
MIT License
2.93k stars 92 forks source link

Icon stays in dock after quitting preference window #396

Closed samcarter closed 10 months ago

samcarter commented 10 months ago

Describe the bug

After quitting the SwiftBar preferences, the SwiftBar icon stays in the dock. This behaviour seems to have started after today's update to version 2.0.0. I installed 2.0.0 BETA 1 again and don't see this problem there.

To Reproduce Steps to reproduce the behaviour:

  1. Left click on any SwiftBar plugin in the menu bar and open the SwiftBar preferences
  2. The preference window will open as desired. At the same time as the preference window opens, also the dock icon of SwiftBar appears. So far so good.
  3. After closing the preference window, the SwiftBar dock icon remains visible. It stays visible even after moving the focus to another application, switching spaces. etc. The only way I found to remove it from the dock is to quit SwiftBar and open it again. Then it will happily run again in the menu bar without dock icon.

Expected behavior I would expect that the dock icon would vanish when closing the preference window

Environment:

Additional Context:

melonamin commented 10 months ago

Oops :)

2.0.1 BETA 1

samcarter commented 10 months ago

@melonamin Whatever magic you did, 2.0.1 works great! Thanks a lot!