浏览代码

close item appearance condition fixed

nayooti 5 年之前
父节点
当前提交
95d21a5798
共有 1 个文件被更改,包括 1 次插入1 次删除
  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