This commit is contained in:
ItsLemmy
2025-11-22 16:50:09 -05:00
parent e108a3b45b
commit 1ff64efc64
2 changed files with 10 additions and 6 deletions

View File

@@ -168,15 +168,15 @@ Item {
if (followFocusedScreen) {
for (var i = 0; i < CompositorService.workspaces.count; i++) {
const ws = CompositorService.workspaces.get(i);
if (ws.isFocused) focusedOutput = ws.output.toLowerCase();
if (ws.isFocused)
focusedOutput = ws.output.toLowerCase();
}
}
if (screen !== null) {
for (var i = 0; i < CompositorService.workspaces.count; i++) {
const ws = CompositorService.workspaces.get(i);
if ((followFocusedScreen && ws.output.toLowerCase() == focusedOutput) ||
(!followFocusedScreen && ws.output.toLowerCase() == screen.name.toLowerCase())) {
if ((followFocusedScreen && ws.output.toLowerCase() == focusedOutput) || (!followFocusedScreen && ws.output.toLowerCase() == screen.name.toLowerCase())) {
if (hideUnoccupied && !ws.isOccupied && !ws.isFocused) {
continue;
}

View File

@@ -368,7 +368,9 @@ ColumnLayout {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
onClicked: {
root.updateEntry(index, { "enabled": !modelData.enabled });
root.updateEntry(index, {
"enabled": !modelData.enabled
});
}
}
}
@@ -397,7 +399,9 @@ ColumnLayout {
NToggle {
checked: modelData.countdownEnabled !== undefined ? modelData.countdownEnabled : true
onToggled: function (checked) {
root.updateEntry(delegateItem.index, { "countdownEnabled": checked });
root.updateEntry(delegateItem.index, {
"countdownEnabled": checked
});
}
}
}
@@ -447,4 +451,4 @@ ColumnLayout {
}
}
}
}
}