Skip to content

Commit

Permalink
fix: Corriger le statut bouton "repeat".
Browse files Browse the repository at this point in the history
  • Loading branch information
regseb committed Jun 1, 2024
1 parent 6b27add commit bd34f2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/popup/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -868,11 +868,14 @@ const handlePositionChanged = function (value) {
document.querySelector("#opensubtitle").disabled = true;

// Ne pas activer les boutons pour répéter et mélanger la liste de
// lecture des vidéos quand le lecteur vidéo est inactif.
// lecture des vidéos quand le lecteur vidéo est inactif. Et mettre les
// valeurs par défaut pour ne pas afficher les boutons comme actifs.
// https://github.com/xbmc/xbmc/issues/17896
handleRepeatChanged("off");
for (const input of document.querySelectorAll("#repeat input")) {
input.disabled = true;
}
handleShuffledChanged(false);
document.querySelector("#shuffle input").disabled = true;
} else {
document.querySelector("#time").disabled = false;
Expand Down
4 changes: 2 additions & 2 deletions src/popup/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ input[type="checkbox"] {
}

input[type="checkbox"] ~ img:last-of-type,
input[type="checkbox"]:checked:not(:disabled) ~ img:first-of-type {
input[type="checkbox"]:checked ~ img:first-of-type {
display: none;
}
input[type="checkbox"] ~ img:first-of-type,
input[type="checkbox"]:checked:not(:disabled) ~ img:last-of-type {
input[type="checkbox"]:checked ~ img:last-of-type {
display: inline-block;
}

Expand Down

0 comments on commit bd34f2e

Please sign in to comment.