mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 18:24:02 +00:00
Close current video (fixes #15)
This commit is contained in:
@@ -133,6 +133,17 @@ struct VideoDetails: View {
|
||||
.onAppear {
|
||||
currentPage = .details
|
||||
}
|
||||
.contextMenu {
|
||||
Button {
|
||||
player.closeCurrentItem()
|
||||
if !sidebarQueue {
|
||||
currentPage = .queue
|
||||
}
|
||||
} label: {
|
||||
Label("Close Video", systemImage: "xmark.circle")
|
||||
}
|
||||
.disabled(player.currentItem.isNil)
|
||||
}
|
||||
|
||||
.font(.title2.bold())
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user