Explorar o código

Update NCViewerPDF.swift

Marino Faggiana %!s(int64=2) %!d(string=hai) anos
pai
achega
5816dcdf5c
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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) {