Sfoglia il codice sorgente

close item appearance condition fixed

nayooti 5 anni fa
parent
commit
95d21a5798
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      deltachat-ios/Controller/PreviewController.swift

+ 1 - 1
deltachat-ios/Controller/PreviewController.swift

@@ -23,7 +23,7 @@ class PreviewController: QLPreviewController {
 
     override func viewDidLoad() {
         super.viewDidLoad()
-        if navigationController != nil && isBeingPresented {
+        if navigationController?.isBeingPresented ?? false {
             /* QLPreviewController comes with a done-button by default. But if is embedded in UINavigationContrller we need to set a done-button manually.
             */
             navigationItem.leftBarButtonItem = doneButtonItem