If file transfer ends with error, close plus view

This commit is contained in:
Leon Böttger committed 2025-05-14 14:50:43 +02:00
1 parent 653fbeb096
commit f6452de763
1 file changed
+5
+5
View File
@@ -326,6 +326,11 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele
alert.addButton(withTitle: "InformDeveloper".localized())
alert.addButton(withTitle: "CloseAlert".localized())
if let plusWindow = plusWindow {
log("Closing plus screen because of error")
self.plusWindow?.close()
}
log("Showing alert with message: \"\(alert.messageText)\" and description: \"\(alert.informativeText)\"")
let result = alert.runModal()