fix NotificationCenter observer issue
This commit is contained in:
parent
4ea8d382a4
commit
78ab6fb3b2
@ -437,6 +437,7 @@ class HotkeyManager: ObservableObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
deinit {
|
deinit {
|
||||||
|
NotificationCenter.default.removeObserver(self)
|
||||||
Task { @MainActor in
|
Task { @MainActor in
|
||||||
removeAllMonitoring()
|
removeAllMonitoring()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user