summary refs log tree commit diff
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2021-09-06 21:11:37 -0400
committerLoren Burkholder <computersemiexpert@outlook.com>2021-09-11 19:35:31 -0400
commit094ddb48a2aaa698e6fcb3a80398d157f55c0574 (patch)
tree28b4f6589f817f12abad275647b269e6139bb6fc
parentOnly try loading plugin once (diff)
downloadnheko-094ddb48a2aaa698e6fcb3a80398d157f55c0574.tar.xz
Don't bother with crop
-rw-r--r--resources/qml/Avatar.qml2
-rw-r--r--src/JdenticonProvider.h4
2 files changed, 2 insertions, 4 deletions
diff --git a/resources/qml/Avatar.qml b/resources/qml/Avatar.qml
index bf936bff..1c05e05d 100644
--- a/resources/qml/Avatar.qml
+++ b/resources/qml/Avatar.qml
@@ -44,8 +44,8 @@ Rectangle {
         id: identicon
         anchors.fill: parent
         visible: img.status != Image.Ready && Settings.useIdenticon
-        source: Settings.useIdenticon ? ("image://jdenticon/" + (userid !== "" ? userid : roomid) + "?radius=" + (Settings.avatarCircles ? 100 : 25) + ((avatar.crop) ? "" : "&scale")) : ""
         layer.enabled: true
+        source: Settings.useIdenticon ? ("image://jdenticon/" + (userid !== "" ? userid : roomid) + "?radius=" + (Settings.avatarCircles ? 100 : 25)) : ""
 
         MouseArea {
             anchors.fill: parent
diff --git a/src/JdenticonProvider.h b/src/JdenticonProvider.h
index 2497687f..bcda29c8 100644
--- a/src/JdenticonProvider.h
+++ b/src/JdenticonProvider.h
@@ -64,9 +64,7 @@ public slots:
                         auto queryBits = query.split('&');
 
                         for (auto b : queryBits) {
-                                if (b == "scale") {
-                                        crop = false;
-                                } else if (b.startsWith("radius=")) {
+                                if (b.startsWith("radius=")) {
                                         radius = b.mid(7).toDouble();
                                 }
                         }