Преглед изворни кода

use better explanation if an account creation qr code has been scanned and an account already exists

cyberta пре 3 година
родитељ
комит
6f99a8e4f3
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      deltachat-ios/Controller/WelcomeViewController.swift

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

@@ -328,7 +328,9 @@ extension WelcomeViewController: QrCodeReaderDelegate {
     }
 
     private func confirmAccountCreationAlert(accountDomain domain: String, qrCode: String) {
-        let title = String.localizedStringWithFormat(String.localized("qraccount_ask_create_and_login"), domain)
+        let title = String.localizedStringWithFormat(
+            String.localized(dcAccounts.getAll().count > 1 ? "qraccount_ask_create_and_login_another" : "qraccount_ask_create_and_login"),
+            domain)
         let alert = UIAlertController(title: title, message: nil, preferredStyle: .alert)
 
         let okAction = UIAlertAction(