marinofaggiana 5 năm trước cách đây
mục cha
commit
94f2d503aa
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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
     }
 }