marinofaggiana 5 anos atrás
pai
commit
94f2d503aa
1 arquivos alterados com 2 adições e 2 exclusões
  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
     }
 }