瀏覽代碼

Update NCViewerPDF.swift

Marino Faggiana 1 年之前
父節點
當前提交
5816dcdf5c
共有 1 個文件被更改,包括 3 次插入1 次删除
  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) {