From 8e5f91a5796f7a18569d9cce5a2057725a8e465d Mon Sep 17 00:00:00 2001 From: Loren Burkholder Date: Mon, 6 Sep 2021 21:14:45 -0400 Subject: [PATCH] Use better jdenticon codes/id settings --- resources/qml/dialogs/ImagePackEditorDialog.qml | 6 +++--- resources/qml/dialogs/ImagePackSettingsDialog.qml | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/resources/qml/dialogs/ImagePackEditorDialog.qml b/resources/qml/dialogs/ImagePackEditorDialog.qml index f927a745..c028f4a2 100644 --- a/resources/qml/dialogs/ImagePackEditorDialog.qml +++ b/resources/qml/dialogs/ImagePackEditorDialog.qml @@ -61,7 +61,7 @@ ApplicationWindow { header: AvatarListTile { title: imagePack.packname avatarUrl: imagePack.avatarUrl - userid: imagePack.packname + roomid: imagePack.statekey subtitle: imagePack.statekey index: -1 selectedIndex: currentImageIndex @@ -143,7 +143,7 @@ ApplicationWindow { Layout.columnSpan: 2 url: imagePack.avatarUrl.replace("mxc://", "image://MxcImage/") displayName: imagePack.packname - userid: imagePack.packname + roomid: imagePack.statekey height: 130 width: 130 crop: false @@ -221,7 +221,7 @@ ApplicationWindow { Layout.columnSpan: 2 url: imagePack.data(imagePack.index(currentImageIndex, 0), SingleImagePackModel.Url).replace("mxc://", "image://MxcImage/") displayName: imagePack.data(imagePack.index(currentImageIndex, 0), SingleImagePackModel.ShortCode) - userid: displayName + roomid: displayName height: 130 width: 130 crop: false diff --git a/resources/qml/dialogs/ImagePackSettingsDialog.qml b/resources/qml/dialogs/ImagePackSettingsDialog.qml index 4aee4a78..ca09ff27 100644 --- a/resources/qml/dialogs/ImagePackSettingsDialog.qml +++ b/resources/qml/dialogs/ImagePackSettingsDialog.qml @@ -112,7 +112,7 @@ ApplicationWindow { return qsTr("Globally enabled pack"); } selectedIndex: currentPackIndex - userid: displayName + roomid: currentPack.statekey TapHandler { onSingleTapped: currentPackIndex = index @@ -136,6 +136,7 @@ ApplicationWindow { property string packName: currentPack ? currentPack.packname : "" property string attribution: currentPack ? currentPack.attribution : "" property string avatarUrl: currentPack ? currentPack.avatarUrl : "" + property string statekey: currentPack ? currentPack.statekey : "" anchors.fill: parent anchors.margins: Nheko.paddingLarge @@ -144,7 +145,7 @@ ApplicationWindow { Avatar { url: packinfo.avatarUrl.replace("mxc://", "image://MxcImage/") displayName: packinfo.packName - userid: packinfo.packName + roomid: packinfo.statekey height: 100 width: 100 Layout.alignment: Qt.AlignHCenter