Skip to content

Commit

Permalink
Change condition of VideoPlayer's ToggleOverlay (jellyfin#515)
Browse files Browse the repository at this point in the history
  • Loading branch information
PangMo5 committed Aug 12, 2022
1 parent 4633796 commit 70b75df
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Swiftfin/Views/VideoPlayer/VLCPlayerViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -728,9 +728,7 @@ extension VLCPlayerViewController {
}

private func toggleOverlay() {
guard let overlayHostingController = currentOverlayHostingController else { return }

if overlayHostingController.view.alpha < 1 {
if viewModel.isHiddenOverlay {
showOverlay()
} else {
hideOverlay()
Expand Down

0 comments on commit 70b75df

Please sign in to comment.