fix NotificationCenter observer issue

This commit is contained in:
Beingpax 2026-01-03 09:43:38 +05:45
parent 4ea8d382a4
commit 78ab6fb3b2

View File

@ -437,6 +437,7 @@ class HotkeyManager: ObservableObject {
}
deinit {
NotificationCenter.default.removeObserver(self)
Task { @MainActor in
removeAllMonitoring()
}