marinofaggiana 4 жил өмнө
parent
commit
44b7882e84
1 өөрчлөгдсөн 21 нэмэгдсэн , 14 устгасан
  1. 21 14
      iOSClient/More/NCMore.swift

+ 21 - 14
iOSClient/More/NCMore.swift

@@ -70,6 +70,27 @@ class NCMore: UIViewController, UITableViewDelegate, UITableViewDataSource {
         super.viewWillAppear(animated)
         appDelegate.activeViewController = self
         
+        loadItems()
+    }
+    
+    // MARK: - NotificationCenter
+
+    @objc func changeTheming() {
+        view.backgroundColor = NCBrandColor.shared.backgroundView
+        progressQuota.progressTintColor = NCBrandColor.shared.brandElement
+        tableView.backgroundColor = NCBrandColor.shared.backgroundView
+        tableView.separatorColor = NCBrandColor.shared.separator
+        tableView.reloadData()
+    }
+    
+    @objc func initializeMain() {
+        loadItems()
+    }
+    
+    // MARK: -
+    
+    func loadItems() {
+        
         var item = NCCommunicationExternalSite()
         var quota: String = ""
 
@@ -213,20 +234,6 @@ class NCMore: UIViewController, UITableViewDelegate, UITableViewDataSource {
         }
     }
 
-    // MARK: - NotificationCenter
-
-    @objc func changeTheming() {
-        view.backgroundColor = NCBrandColor.shared.backgroundView
-        progressQuota.progressTintColor = NCBrandColor.shared.brandElement
-        tableView.backgroundColor = NCBrandColor.shared.backgroundView
-        tableView.separatorColor = NCBrandColor.shared.separator
-        tableView.reloadData()
-    }
-    
-    @objc func initializeMain() {
-        viewWillAppear(true)
-    }
-
     // MARK: - Action
 
     @objc func tapLabelQuotaExternalSite() {