Don't bother with crop

This commit is contained in:
Loren Burkholder 2021-09-06 21:11:37 -04:00
parent 2147ce8556
commit 094ddb48a2
2 changed files with 2 additions and 4 deletions

View file

@ -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

View file

@ -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();
}
}