瀏覽代碼

fix search mode

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 年之前
父節點
當前提交
6edd02cd9d
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 1 1
      iOSClient/AppDelegate.swift
  2. 2 0
      iOSClient/Main/NCFunctionCenter.swift

+ 1 - 1
iOSClient/AppDelegate.swift

@@ -865,7 +865,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
 
 
         else if scheme == "nextcloud" && action == "open-file" {
         else if scheme == "nextcloud" && action == "open-file" {
 
 
-            if !isSearchingMode, let urlComponents = URLComponents(url: url, resolvingAgainstBaseURL: false) {
+            if let urlComponents = URLComponents(url: url, resolvingAgainstBaseURL: false) {
 
 
                 let queryItems = urlComponents.queryItems
                 let queryItems = urlComponents.queryItems
                 guard let userScheme = CCUtility.value(forKey: "user", fromQueryItems: queryItems) else { return false }
                 guard let userScheme = CCUtility.value(forKey: "user", fromQueryItems: queryItems) else { return false }

+ 2 - 0
iOSClient/Main/NCFunctionCenter.swift

@@ -462,6 +462,8 @@ import Photos
 
 
     func openFileViewInFolder(serverUrl: String, fileNameBlink: String?) {
     func openFileViewInFolder(serverUrl: String, fileNameBlink: String?) {
 
 
+        appDelegate.isSearchingMode = false
+        
         DispatchQueue.main.asyncAfter(deadline: .now() + 0.3) {
         DispatchQueue.main.asyncAfter(deadline: .now() + 0.3) {
             var topNavigationController: UINavigationController?
             var topNavigationController: UINavigationController?
             var pushServerUrl = NCUtilityFileSystem.shared.getHomeServer(account: self.appDelegate.account)
             var pushServerUrl = NCUtilityFileSystem.shared.getHomeServer(account: self.appDelegate.account)