fix bar wrong model

This commit is contained in:
end-4
2025-11-12 21:53:22 +01:00
parent b828a1dbf0
commit 5c92ad64f9
@@ -14,15 +14,13 @@ Scope {
Variants { Variants {
// For each monitor // For each monitor
model: ScriptModel { model: {
values: {
const screens = Quickshell.screens; const screens = Quickshell.screens;
const list = Config.options.bar.screenList; const list = Config.options.bar.screenList;
if (!list || list.length === 0) if (!list || list.length === 0)
return screens; return screens;
return screens.filter(screen => list.includes(screen.name)); return screens.filter(screen => list.includes(screen.name));
} }
}
LazyLoader { LazyLoader {
id: barLoader id: barLoader
active: GlobalStates.barOpen && !GlobalStates.screenLocked active: GlobalStates.barOpen && !GlobalStates.screenLocked