From dcfd24e37668d127d3f3889b6e20ef6dd17891db Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Mon, 15 Aug 2022 00:16:37 +0200 Subject: [PATCH] Minor changes --- Model/Player/Backends/MPVBackend.swift | 2 +- Shared/Player/VideoPlayerView.swift | 2 +- Shared/Views/ControlsBar.swift | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Model/Player/Backends/MPVBackend.swift b/Model/Player/Backends/MPVBackend.swift index 2370e676..ec11a577 100644 --- a/Model/Player/Backends/MPVBackend.swift +++ b/Model/Player/Backends/MPVBackend.swift @@ -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 } diff --git a/Shared/Player/VideoPlayerView.swift b/Shared/Player/VideoPlayerView.swift index a95cdd8e..cd330aec 100644 --- a/Shared/Player/VideoPlayerView.swift +++ b/Shared/Player/VideoPlayerView.swift @@ -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 } diff --git a/Shared/Views/ControlsBar.swift b/Shared/Views/ControlsBar.swift index 1581cb83..40b5147e 100644 --- a/Shared/Views/ControlsBar.swift +++ b/Shared/Views/ControlsBar.swift @@ -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)