Minor changes

This commit is contained in:
Arkadiusz Fal 2022-08-15 00:16:37 +02:00
parent d2cecf164d
commit dcfd24e376
3 changed files with 3 additions and 3 deletions

View File

@ -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
}

View File

@ -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
}

View File

@ -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)