ui: Move behind in the menu disabled themes

This commit is contained in:
nemunaire 2023-04-06 15:38:04 +02:00
commit 089e604679

View file

@ -42,7 +42,7 @@ export const themes = derived(
const r = Math.floor(rng() * keys.length);
const g = keys[r];
keys.splice(r,1);
if (arr[g].locked) {
if (arr[g].locked || arr[g].exercices.length == 0 || ($my && (!$my.exercices[arr[g].exercices[0].id] || $my.exercices[arr[g].exercices[0].id].disabled))) {
respD.push(arr[g]);
} else {
respE.push(arr[g]);