Ver código fonte

Update NCViewerPDF.swift

Marino Faggiana 1 ano atrás
pai
commit
5816dcdf5c
1 arquivos alterados com 3 adições e 1 exclusões
  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) {