chore: run qmlformat
This commit is contained in:
parent
796c2e4e76
commit
beddbb111e
4 changed files with 5 additions and 9 deletions
|
|
@ -69,7 +69,6 @@ Scope {
|
|||
onPressed: root.launcherInterrupted = true
|
||||
}
|
||||
|
||||
|
||||
CustomShortcut {
|
||||
name: "sidebar"
|
||||
description: "Toggle sidebar"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 () {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue