diff options
author | Loren Burkholder <computersemiexpert@outlook.com> | 2021-01-16 11:52:58 -0500 |
---|---|---|
committer | Loren Burkholder <computersemiexpert@outlook.com> | 2021-01-16 11:52:58 -0500 |
commit | 6f6d962ab976cc40cefa1062e3c5a224f1bf77ab (patch) | |
tree | 530fd0fdf1a646e2d554d171d889a71e50914605 /resources | |
parent | Fix tooltips (diff) | |
download | nheko-6f6d962ab976cc40cefa1062e3c5a224f1bf77ab.tar.xz |
Fix warning messages about null image path
Diffstat (limited to 'resources')
-rw-r--r-- | resources/qml/ImageButton.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/qml/ImageButton.qml b/resources/qml/ImageButton.qml index 58e0a2a9..f645162c 100644 --- a/resources/qml/ImageButton.qml +++ b/resources/qml/ImageButton.qml @@ -19,7 +19,7 @@ AbstractButton { // Workaround, can't get icon.source working for now... anchors.fill: parent - source: "image://colorimage/" + image + "?" + ((button.hovered && changeColorOnHover) ? highlightColor : buttonTextColor) + source: image != "" ? ("image://colorimage/" + image + "?" + ((button.hovered && changeColorOnHover) ? highlightColor : buttonTextColor)) : "" } MouseArea { |