Update src/controllers/playback/video/index.js

Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
Davide Maggio 2023-02-08 10:18:23 +01:00 committed by GitHub
parent c33dc8cd7a
commit f78f2c7094
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -878,11 +878,7 @@ import { setBackdropTransparency, TRANSPARENCY_LEVEL } from '../../../components
} }
function nowPlayingDurationTextClick() { function nowPlayingDurationTextClick() {
if (userSettings.enableVideoRemainingTime()) { userSettings.enableVideoRemainingTime(!userSettings.enableVideoRemainingTime());
userSettings.enableVideoRemainingTime(false);
} else {
userSettings.enableVideoRemainingTime(true);
}
// immediately update the text, without waiting for the next tick update or if the player is paused // immediately update the text, without waiting for the next tick update or if the player is paused
const state = playbackManager.getPlayerState(currentPlayer); const state = playbackManager.getPlayerState(currentPlayer);
const playState = state.PlayState; const playState = state.PlayState;