Refine Menu Bar Only mode behavior and fix observer leak

This commit is contained in:
Beingpax 2026-01-07 09:46:00 +05:45
parent b4b3920bc3
commit 3d52cb6fe8

View File

@ -25,6 +25,10 @@ class MenuBarManager: ObservableObject {
)
}
deinit {
NotificationCenter.default.removeObserver(self)
}
@objc private func windowDidClose(_ notification: Notification) {
guard isMenuBarOnly else { return }