mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2025-12-06 06:36:15 +00:00
autofmt
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user