Browse Source

coding

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 2 years ago
parent
commit
b473b98c81
1 changed files with 3 additions and 1 deletions
  1. 3 1
      iOSClient/Color/NCColorPicker.swift

+ 3 - 1
iOSClient/Color/NCColorPicker.swift

@@ -113,8 +113,10 @@ class NCColorPicker: UIViewController {
         if let metadata = metadata {
             let serverUrl = metadata.serverUrl + "/" + metadata.fileName
             if NCManageDatabase.shared.setDirectory(serverUrl: serverUrl, colorFolder: hexColor, account: metadata.account) != nil {
-                NotificationCenter.default.postOnMainThread(name: NCGlobal.shared.notificationCenterReloadDataSourceNetworkForced, userInfo: ["serverUrl": metadata.serverUrl])
+                self.dismiss(animated: true)
+                NotificationCenter.default.postOnMainThread(name: NCGlobal.shared.notificationCenterReloadDataSource, userInfo: ["serverUrl": self.serverUrl])
             }
         }
+        self.dismiss(animated: true)
     }
 }