소스 검색

fix

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 년 전
부모
커밋
46971e74cb
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      iOSClient/Shares/NCShares.swift

+ 2 - 2
iOSClient/Shares/NCShares.swift

@@ -85,11 +85,11 @@ class NCShares: NCCollectionViewCommon {
     override func reloadDataSourceNetwork(forced: Bool = false) {
         super.reloadDataSourceNetwork(forced: forced)
 
+        if UIApplication.shared.applicationState != .active { return }
+
         isReloadDataSourceNetworkInProgress = true
         collectionView?.reloadData()
 
-        NextcloudKit.shared.nkCommonInstance.writeLog("[TEST] READSHARES")
-
         NextcloudKit.shared.readShares(parameters: NKShareParameter()) { account, shares, data, error in
 
             self.refreshControl.endRefreshing()