marinofaggiana 5 лет назад
Родитель
Сommit
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
     }
 }