Run qmlformat over everything

This commit is contained in:
Tobias Fella
2024-01-31 22:45:40 +01:00
parent 6029c0d0b3
commit fe52d26f05
126 changed files with 1481 additions and 1183 deletions

View File

@@ -30,7 +30,9 @@ FormCard.FormCardPage {
enabled: room.canEncryptRoom
checked: room.usesEncryption
onToggled: if (checked) {
let dialog = confirmEncryptionDialog.createObject(applicationWindow().overlay, {room: room});
let dialog = confirmEncryptionDialog.createObject(applicationWindow().overlay, {
room: room
});
dialog.open();
}
}
@@ -51,8 +53,7 @@ FormCard.FormCardPage {
}
FormCard.FormRadioDelegate {
text: i18nc("@option:check", "Space members")
description: i18n("Anyone in the selected spaces can find and join.") +
(!["8", "9", "10"].includes(room.version) ? `\n${needUpgradeRoom}` : "")
description: i18n("Anyone in the selected spaces can find and join.") + (!["8", "9", "10"].includes(room.version) ? `\n${needUpgradeRoom}` : "")
checked: room.joinRule === "restricted"
enabled: room.canSendState("m.room.join_rules") && ["8", "9", "10"].includes(room.version)
onCheckedChanged: if (checked && room.joinRule != "restricted") {
@@ -64,7 +65,7 @@ FormCard.FormCardPage {
text: i18n("Select spaces")
icon.name: "list-add"
onClicked: selectSpacesDialog.createObject(applicationWindow().overlay).open();
onClicked: selectSpacesDialog.createObject(applicationWindow().overlay).open()
QQC2.ToolTip.text: text
QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay
@@ -80,8 +81,7 @@ FormCard.FormCardPage {
}
FormCard.FormRadioDelegate {
text: i18nc("@option:check", "Knock")
description: i18n("People not in the room need to request an invite to join the room.") +
(!["7", "8", "9", "10"].includes(room.version) ? `\n${needUpgradeRoom}` : "")
description: i18n("People not in the room need to request an invite to join the room.") + (!["7", "8", "9", "10"].includes(room.version) ? `\n${needUpgradeRoom}` : "")
checked: room.joinRule === "knock"
// https://spec.matrix.org/v1.4/rooms/#feature-matrix
enabled: room.canSendState("m.room.join_rules") && ["7", "8", "9", "10"].includes(room.version)
@@ -110,7 +110,7 @@ FormCard.FormCardPage {
checked: room.historyVisibility === "world_readable"
enabled: room.canSendState("m.room.history_visibility")
onCheckedChanged: if (checked) {
room.historyVisibility = "world_readable"
room.historyVisibility = "world_readable";
}
}
FormCard.FormRadioDelegate {
@@ -119,7 +119,7 @@ FormCard.FormCardPage {
checked: room.historyVisibility === "shared"
enabled: room.canSendState("m.room.history_visibility")
onCheckedChanged: if (checked) {
room.historyVisibility = "shared"
room.historyVisibility = "shared";
}
}
FormCard.FormRadioDelegate {
@@ -128,7 +128,7 @@ FormCard.FormCardPage {
checked: room.historyVisibility === "invited"
enabled: room.canSendState("m.room.history_visibility")
onCheckedChanged: if (checked) {
room.historyVisibility = "invited"
room.historyVisibility = "invited";
}
}
FormCard.FormRadioDelegate {
@@ -137,7 +137,7 @@ FormCard.FormCardPage {
checked: room.historyVisibility === "joined"
enabled: room.canSendState("m.room.history_visibility")
onCheckedChanged: if (checked) {
room.historyVisibility = "joined"
room.historyVisibility = "joined";
}
}
}
@@ -150,7 +150,7 @@ FormCard.FormCardPage {
// At the point this is executed, the state in the room is not yet changed.
// The value will be updated when room.onEncryption() emitted.
// This is in case if user simply closed the dialog.
enableEncryptionSwitch.checked = false
enableEncryptionSwitch.checked = false;
}
}
}
@@ -158,8 +158,7 @@ FormCard.FormCardPage {
property Connections connections: Connections {
target: room
onEncryption: {
enableEncryptionSwitch.checked = room.usesEncryption
enableEncryptionSwitch.checked = room.usesEncryption;
}
}
}