mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Close item if could not be opened
This commit is contained in:
@@ -293,6 +293,7 @@ final class MPVBackend: PlayerBackend {
|
||||
if video.isLocal, video.localStreamIsFile, let localStream = video.localStream {
|
||||
guard localStream.localURL.startAccessingSecurityScopedResource() else {
|
||||
self.model.navigation.presentAlert(title: "Could not open file")
|
||||
self.model.closeCurrentItem()
|
||||
return
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user