mirror of
https://github.com/yattee/yattee.git
synced 2024-11-10 00:08:21 +00:00
Minor changes
This commit is contained in:
parent
d2cecf164d
commit
dcfd24e376
@ -345,7 +345,7 @@ final class MPVBackend: PlayerBackend {
|
||||
}
|
||||
|
||||
func startControlsUpdates() {
|
||||
guard model.presentingPlayer, !model.controls.presentingOverlays else {
|
||||
guard model.presentingPlayer, model.controls.presentingControls, !model.controls.presentingOverlays else {
|
||||
self.logger.info("ignored controls update start")
|
||||
return
|
||||
}
|
||||
|
@ -315,7 +315,7 @@ struct VideoPlayerView: View {
|
||||
.onMoveCommand { direction in
|
||||
if direction == .up {
|
||||
playerControls.show()
|
||||
} else if direction == .down, !playerControls.presentingControlsOverlay {
|
||||
} else if direction == .down, !playerControls.presentingControlsOverlay, !playerControls.presentingControls {
|
||||
withAnimation(PlayerControls.animation) {
|
||||
playerControls.presentingControlsOverlay = true
|
||||
}
|
||||
|
@ -224,7 +224,7 @@ struct ControlsBar: View {
|
||||
}
|
||||
|
||||
VStack(alignment: .leading, spacing: 0) {
|
||||
Text(model.currentVideo?.title ?? "Not playing")
|
||||
Text(model.currentVideo?.title ?? "Not Playing")
|
||||
.font(.system(size: 14))
|
||||
.fontWeight(.semibold)
|
||||
.foregroundColor(model.currentVideo.isNil ? .secondary : .accentColor)
|
||||
|
Loading…
Reference in New Issue
Block a user