Fix qml warnings and missing icons

This commit is contained in:
Nicolas Werner 2021-11-17 06:26:33 +01:00
parent c40fbf420a
commit 9c1c3eb10d
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
2 changed files with 4 additions and 4 deletions

View file

@ -87,7 +87,7 @@ ApplicationWindow {
Connections { Connections {
target: roomSettings target: roomSettings
onDisplayError: { function onDisplayError(errorMessage) {
errorText.text = errorMessage; errorText.text = errorMessage;
errorText.opacity = 1; errorText.opacity = 1;
hideErrorAnimation.restart(); hideErrorAnimation.restart();
@ -229,7 +229,7 @@ ApplicationWindow {
title: qsTr("End-to-End Encryption") title: qsTr("End-to-End Encryption")
text: qsTr("Encryption is currently experimental and things might break unexpectedly. <br> text: qsTr("Encryption is currently experimental and things might break unexpectedly. <br>
Please take note that it can't be disabled afterwards.") Please take note that it can't be disabled afterwards.")
modality: Qt.Modal modality: Qt.NonModal
onAccepted: { onAccepted: {
if (roomSettings.isEncryptionEnabled) if (roomSettings.isEncryptionEnabled)
return ; return ;

View file

@ -314,9 +314,9 @@ ApplicationWindow {
case VerificationStatus.UNVERIFIED: case VerificationStatus.UNVERIFIED:
return "image://colorimage/:/icons/icons/ui/shield-filled-exclamation-mark.svg?#d6c020"; return "image://colorimage/:/icons/icons/ui/shield-filled-exclamation-mark.svg?#d6c020";
case VerificationStatus.SELF: case VerificationStatus.SELF:
return "image://colorimage/:/icons/ui/checkmark.svg?green"; return "image://colorimage/:/icons/icons/ui/checkmark.svg?green";
default: default:
return "image://colorimage/:/icons/ui/shield-filled-cross.svg?#d6c020"; return "image://colorimage/:/icons/icons/ui/shield-filled-cross.svg?#d6c020";
} }
} }
} }