Explorar o código

remove delay after dismissing qr-scan-viewcontroller

UIKit seems to be pretty slow in updating underlaying view sometimes,
a quick search for "viewcontroller dismiss completion delayed"
shows several issues.

we ignore this issue by not waiting until the controller is really dismissed,
afaik, ther is no need to do so.
B. Petersen %!s(int64=5) %!d(string=hai) anos
pai
achega
370577ba89
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  1. 2 3
      deltachat-ios/Controller/WelcomeViewController.swift

+ 2 - 3
deltachat-ios/Controller/WelcomeViewController.swift

@@ -179,9 +179,8 @@ extension WelcomeViewController: QrCodeReaderDelegate {
             style: .default,
             handler: { [unowned self] _ in
                 self.activateSpinner(true)
-                self.qrCodeReaderNav.dismiss(animated: false) {
-                    self.createAccountFromQRCode()
-                }
+                self.qrCodeReaderNav.dismiss(animated: false)
+                self.createAccountFromQRCode()
             }
         )