mirror of
https://github.com/jellyfin/Swiftfin.git
synced 2024-12-02 19:16:27 +00:00
merge fixes
This commit is contained in:
parent
cdc294dd96
commit
23da0ba273
@ -53,9 +53,9 @@ struct ItemLandscapeMainView: View {
|
||||
.contextMenu {
|
||||
if viewModel.playButtonItem != nil, viewModel.item.userData?.playbackPositionTicks ?? 0 > 0 {
|
||||
Button {
|
||||
if let itemVideoPlayerViewModel = viewModel.selectedVideoPlayerViewModel {
|
||||
itemVideoPlayerViewModel.injectCustomValues(startFromBeginning: true)
|
||||
itemRouter.route(to: \.videoPlayer, itemVideoPlayerViewModel)
|
||||
if let selectedVideoPlayerViewModel = viewModel.selectedVideoPlayerViewModel {
|
||||
selectedVideoPlayerViewModel.injectCustomValues(startFromBeginning: true)
|
||||
itemRouter.route(to: \.videoPlayer, selectedVideoPlayerViewModel)
|
||||
} else {
|
||||
LogManager.shared.log.error("Attempted to play item but no playback information available")
|
||||
}
|
||||
|
@ -113,8 +113,8 @@ struct PortraitHeaderOverlayView: View {
|
||||
// MARK: Play
|
||||
|
||||
Button {
|
||||
if let itemVideoPlayerViewModel = viewModel.itemVideoPlayerViewModel {
|
||||
itemRouter.route(to: \.videoPlayer, itemVideoPlayerViewModel)
|
||||
if let selectedVideoPlayerViewModel = viewModel.selectedVideoPlayerViewModel {
|
||||
itemRouter.route(to: \.videoPlayer, selectedVideoPlayerViewModel)
|
||||
} else {
|
||||
LogManager.shared.log.error("Attempted to play item but no playback information available")
|
||||
}
|
||||
@ -132,13 +132,13 @@ struct PortraitHeaderOverlayView: View {
|
||||
.background(viewModel.playButtonItem == nil ? Color(UIColor.secondarySystemFill) : Color.jellyfinPurple)
|
||||
.cornerRadius(10)
|
||||
}
|
||||
.disabled(viewModel.playButtonItem == nil)
|
||||
.disabled(viewModel.playButtonItem == nil || viewModel.selectedVideoPlayerViewModel == nil)
|
||||
.contextMenu {
|
||||
if viewModel.playButtonItem != nil, viewModel.item.userData?.playbackPositionTicks ?? 0 > 0 {
|
||||
Button {
|
||||
if let itemVideoPlayerViewModel = viewModel.itemVideoPlayerViewModel {
|
||||
itemVideoPlayerViewModel.injectCustomValues(startFromBeginning: true)
|
||||
itemRouter.route(to: \.videoPlayer, itemVideoPlayerViewModel)
|
||||
if let selectedVideoPlayerViewModel = viewModel.selectedVideoPlayerViewModel {
|
||||
selectedVideoPlayerViewModel.injectCustomValues(startFromBeginning: true)
|
||||
itemRouter.route(to: \.videoPlayer, selectedVideoPlayerViewModel)
|
||||
} else {
|
||||
LogManager.shared.log.error("Attempted to play item but no playback information available")
|
||||
}
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user