Don't create multiple ReceiveModels in AppDelegate

This commit is contained in:
Leon Böttger committed 2026-02-16 19:43:42 +01:00
1 parent d367e0ff34
commit bb1f28af0b
1 file changed
+5
+5
View File
@@ -133,6 +133,11 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele
func startReceiving() {
guard receiveModel == nil else {
log("[AppDelegate] startReceiving called while receiver is already active. Ignoring duplicate call.")
return
}
receiveModel = ReceiveModel(controlPlusScreen: { shouldOpen in
if shouldOpen {
self.openPlusScreen()