Skip to content

Commit

Permalink
Hide Time of Completion OSD for Hide Clocks Setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Renbo2024 committed Oct 22, 2024
1 parent aa0231f commit 9854860
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/video/OSD.bs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ sub onProgressPercentageChanged()
m.videoPositionTime.text = secondsToHuman(m.top.positionTime, true)

osdmode = m.global.session.user.settings["ui.general.osdremainingtime"]
if m.global.session.user.settings["ui.design.hideclock"]
' in order to honor the hide clocks setting
osdmode = "remaining"
end if

if osdmode = "remaining"
m.videoRemainingTime.text = secondsToHuman(m.top.remainingPositionTime, true)
Expand Down

0 comments on commit 9854860

Please sign in to comment.