|
@@ -169,8 +169,6 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
|
|
|
|
|
|
NotificationCenter.default.addObserver(self, selector: #selector(triggerProgressTask(_:)), name: NSNotification.Name(rawValue: NCGlobal.shared.notificationCenterProgressTask), object: nil)
|
|
|
|
|
|
- NotificationCenter.default.addObserver(self, selector: #selector(applicationWillEnterForeground(_:)), name: NSNotification.Name(rawValue: NCGlobal.shared.notificationCenterApplicationWillEnterForeground), object: nil)
|
|
|
-
|
|
|
if serverUrl == "" {
|
|
|
appDelegate.activeServerUrl = NCUtilityFileSystem.shared.getHomeServer(account: appDelegate.account)
|
|
|
} else {
|
|
@@ -220,8 +218,6 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
|
|
|
|
|
|
NotificationCenter.default.removeObserver(self, name: NSNotification.Name(rawValue: NCGlobal.shared.notificationCenterProgressTask), object: nil)
|
|
|
|
|
|
- NotificationCenter.default.removeObserver(self, name: NSNotification.Name(rawValue: NCGlobal.shared.notificationCenterApplicationWillEnterForeground), object: nil)
|
|
|
-
|
|
|
pushed = false
|
|
|
|
|
|
// REQUEST
|
|
@@ -341,11 +337,6 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
|
|
|
collectionView.reloadData()
|
|
|
}
|
|
|
|
|
|
- @objc func applicationWillEnterForeground(_ notification: NSNotification) {
|
|
|
-
|
|
|
- collectionView?.reloadData()
|
|
|
- }
|
|
|
-
|
|
|
@objc func reloadDataSource(_ notification: NSNotification) {
|
|
|
|
|
|
reloadDataSource()
|