Skip to content
Snippets Groups Projects
Commit 094ddb48 authored by Loren Burkholder's avatar Loren Burkholder
Browse files

Don't bother with crop

parent 2147ce85
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment