|
@@ -27,6 +27,7 @@ import NCCommunication
|
|
|
import TOPasscodeViewController
|
|
|
import LocalAuthentication
|
|
|
import Firebase
|
|
|
+import IHProgressHUD
|
|
|
|
|
|
@UIApplicationMain
|
|
|
class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate, TOPasscodeViewControllerDelegate, NCAccountRequestDelegate, NCViewCertificateDetailsDelegate {
|
|
@@ -202,6 +203,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
|
|
|
if account == "" { return }
|
|
|
guard let activeAccount = NCManageDatabase.shared.getActiveAccount() else { return }
|
|
|
|
|
|
+ // close HUD
|
|
|
+ IHProgressHUD.dismiss()
|
|
|
+
|
|
|
// Account changed ??
|
|
|
if activeAccount.account != account {
|
|
|
settingAccount(activeAccount.account, urlBase: activeAccount.urlBase, user: activeAccount.user, userId: activeAccount.userId, password: CCUtility.getPassword(activeAccount.account))
|