marinofaggiana hace 5 años
padre
commit
0b0d97fcfa
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  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)