chore: run qmlformat

This commit is contained in:
2 * r + 2 * t 2026-03-20 16:06:40 +11:00
parent 796c2e4e76
commit beddbb111e
4 changed files with 5 additions and 9 deletions

View file

@ -69,7 +69,6 @@ Scope {
onPressed: root.launcherInterrupted = true
}
CustomShortcut {
name: "sidebar"
description: "Toggle sidebar"

View file

@ -35,7 +35,7 @@ StyledRect {
color: root.colour
}
}
StyledText {
anchors.horizontalCenter: parent.horizontalCenter
@ -52,7 +52,7 @@ StyledRect {
anchors.horizontalCenter: parent.horizontalCenter
visible: Config.bar.clock.showDate
height: visible ? 1 : 0
width: parent.width * 0.8
color: root.colour
opacity: 0.2

View file

@ -70,8 +70,7 @@ StyledRect {
Component.onCompleted: {
if (modelData.state !== undefined && modelData.state) {
_checked = modelData.state;
}
else if (root.rootItem && modelData.propertyName) {
} else if (root.rootItem && modelData.propertyName) {
const propName = modelData.propertyName;
const rootItem = root.rootItem;
_checked = Qt.binding(function () {

View file

@ -20,15 +20,13 @@ StyledRect {
return Config.utilities.quickToggles.filter(item => {
if (!item.enabled)
return false;
if (seenIds.has(item.id)) {
return false;
}
if (item.id === "vpn") {
return Config.utilities.vpn.provider.some(p =>
typeof p === "object" ? (p.enabled === true) : false
);
return Config.utilities.vpn.provider.some(p => typeof p === "object" ? (p.enabled === true) : false);
}
seenIds.add(item.id);