mirror of
https://github.com/yattee/yattee.git
synced 2025-08-06 10:44:06 +00:00
Close current video (fixes #15)
This commit is contained in:
@@ -33,6 +33,13 @@ struct NowPlayingView: View {
|
||||
} label: {
|
||||
VideoBanner(video: item.video)
|
||||
}
|
||||
.contextMenu {
|
||||
Button("Close Video") {
|
||||
player.closeCurrentItem()
|
||||
}
|
||||
|
||||
Button("Cancel", role: .cancel) {}
|
||||
}
|
||||
}
|
||||
.onPlayPauseCommand(perform: player.togglePlay)
|
||||
}
|
||||
|
Reference in New Issue
Block a user