浏览代码

coding

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 2 年之前
父节点
当前提交
b473b98c81
共有 1 个文件被更改,包括 3 次插入1 次删除
  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)
     }
 }