Browse Source

Update NCViewerPDF.swift

Marino Faggiana 1 year ago
parent
commit
5816dcdf5c
1 changed files with 3 additions and 1 deletions
  1. 3 1
      iOSClient/Viewer/NCViewerPDF/NCViewerPDF.swift

+ 3 - 1
iOSClient/Viewer/NCViewerPDF/NCViewerPDF.swift

@@ -339,7 +339,9 @@ class NCViewerPDF: UIViewController, NCViewerPDFSearchDelegate {
               let error = userInfo["error"] as? NKError
         else { return }
 
-        viewUnload()
+        if error == .success {
+            viewUnload()
+        }
     }
 
     @objc func renameFile(_ notification: NSNotification) {