Clean up after closing app

This commit is contained in:
Leon Böttger committed 2026-01-18 18:50:22 +01:00
1 parent fbd14c2280
commit b546370e87
1 file changed
+2
+2
View File
@@ -183,6 +183,8 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele
func applicationWillTerminate(_: Notification) {
UNUserNotificationCenter.current().removeAllDeliveredNotifications()
NearbyConnectionManager.shared.stopDeviceDiscovery()
NearbyConnectionManager.shared.becomeInvisible()
}