Pārlūkot izejas kodu

Update NCViewerPDF.swift

Marino Faggiana 1 gadu atpakaļ
vecāks
revīzija
5816dcdf5c
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  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) {