marinofaggiana 4 年之前
父节点
当前提交
972c0978b8
共有 2 个文件被更改,包括 6 次插入0 次删除
  1. 5 0
      iOSClient/Account Request/NCAccountRequest.swift
  2. 1 0
      iOSClient/AppDelegate.swift

+ 5 - 0
iOSClient/Account Request/NCAccountRequest.swift

@@ -51,6 +51,11 @@ class NCAccountRequest: UIViewController {
         progressView.tintColor = NCBrandColor.shared.brandElement
         progressView.trackTintColor = .clear
         progressView.progress = 1
+        if enableTimerProgress {
+            progressView.isHidden = false
+        } else {
+            progressView.isHidden = true
+        }
         
         NotificationCenter.default.addObserver(self, selector: #selector(startTimer), name: NSNotification.Name(rawValue: NCGlobal.shared.notificationCenterApplicationDidBecomeActive), object: nil)
         NotificationCenter.default.addObserver(self, selector: #selector(changeTheming), name: NSNotification.Name(rawValue: NCGlobal.shared.notificationCenterChangeTheming), object: nil)

+ 1 - 0
iOSClient/AppDelegate.swift

@@ -610,6 +610,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
             if let vcAccountRequest = UIStoryboard(name: "NCAccountRequest", bundle: nil).instantiateInitialViewController() as? NCAccountRequest {
                
                 vcAccountRequest.accounts = accounts
+                vcAccountRequest.enableTimerProgress = true
                 
                 let screenHeighMax = UIScreen.main.bounds.height - (UIScreen.main.bounds.height/5)
                 let height = min(CGFloat(accounts.count * Int(vcAccountRequest.heightCell) + 65), screenHeighMax)