Explorar o código

fixes that sometimes error messages are not shown, e.g. when adding accounts by qrCode fails

cyberta %!s(int64=4) %!d(string=hai) anos
pai
achega
6ad72232cd
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      deltachat-ios/Handler/ProgressAlertHandler.swift

+ 3 - 1
deltachat-ios/Handler/ProgressAlertHandler.swift

@@ -48,7 +48,9 @@ extension ProgressAlertHandler {
             self.progressAlert?.dismiss(animated: false) {
                 let errorAlert = UIAlertController(title: String.localized("error"), message: message, preferredStyle: .alert)
                 errorAlert.addAction(UIAlertAction(title: String.localized("ok"), style: .default, handler: nil))
-                self.present(errorAlert, animated: true, completion: nil)
+                // sometimes error messages are not shown and we get the same error as above
+                // as a workaround we disable animated here as well
+                self.present(errorAlert, animated: false, completion: nil)
             }
         })
     }