Browse Source

After cancelling a backup we default back to unencrypted account. Ensure the title is correct

cyberta 2 years ago
parent
commit
c1081dd72d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      deltachat-ios/Controller/WelcomeViewController.swift

+ 1 - 0
deltachat-ios/Controller/WelcomeViewController.swift

@@ -324,6 +324,7 @@ class WelcomeViewController: UIViewController, ProgressAlertHandler {
                         KeychainManager.deleteAccountSecret(id: accountId)
                         _ = self.dcAccounts.add()
                         self.dcContext = self.dcAccounts.getSelected()
+                        self.navigationItem.title = String.localized(self.canCancel ? "add_account" : "welcome_desktop")
                     }
                     self.updateProgressAlert(error: ui["errorMessage"] as? String)
                     self.securityScopedResource?.stopAccessingSecurityScopedResource()