marinofaggiana 5 年之前
父節點
當前提交
94f2d503aa
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      iOSClient/Main/NCDetailViewController.swift

+ 2 - 2
iOSClient/Main/NCDetailViewController.swift

@@ -312,7 +312,7 @@ class NCDetailViewController: UIViewController, MediaBrowserViewControllerDelega
     func mediaBrowser(_ mediaBrowser: MediaBrowserViewController, didChangeFocusTo index: Int) {
         if index >= metadatas.count { return }
         
-        let metadata = metadatas[index]
-        self.navigationController?.navigationBar.topItem?.title = metadata.fileNameView
+        metadata = metadatas[index]
+        self.navigationController?.navigationBar.topItem?.title = metadata!.fileNameView
     }
 }