marinofaggiana před 5 roky
rodič
revize
0b0d97fcfa
1 změnil soubory, kde provedl 1 přidání a 3 odebrání
  1. 1 3
      iOSClient/Login/NCAppConfigView.swift

+ 1 - 3
iOSClient/Login/NCAppConfigView.swift

@@ -75,9 +75,7 @@ class NCAppConfigView: UIViewController {
                 let account: String = "\(username) \(serverUrl)"
                 
                 // NO account found, clear
-                if NCManageDatabase.sharedInstance.getAccounts() == nil {
-                    NCUtility.sharedInstance.removeAllSettings()
-                }
+                if NCManageDatabase.sharedInstance.getAccounts() == nil { NCUtility.sharedInstance.removeAllSettings() }
                 
                 // Add new account
                 NCManageDatabase.sharedInstance.deleteAccount(account)