From 9ddb3b7713c48856acd8a6748202099123dbd6d0 Mon Sep 17 00:00:00 2001 From: Konstantinos Karmas Date: Tue, 13 Jul 2021 16:53:02 +0200 Subject: [PATCH] Fix icon being ignored in message action buttons CURA-8112 --- resources/qml/Cura.qml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/resources/qml/Cura.qml b/resources/qml/Cura.qml index 191ae712d4..80b8880aae 100644 --- a/resources/qml/Cura.qml +++ b/resources/qml/Cura.qml @@ -417,6 +417,7 @@ UM.MainWindow Cura.PrimaryButton { text: model.name + iconSource: UM.Theme.getIcon(model.icon) height: UM.Theme.getSize("message_action_button").height } } @@ -426,6 +427,7 @@ UM.MainWindow Cura.SecondaryButton { text: model.name + iconSource: UM.Theme.getIcon(model.icon) height: UM.Theme.getSize("message_action_button").height } } @@ -434,6 +436,11 @@ UM.MainWindow Cura.TertiaryButton { text: model.name + iconSource: { + if (model.icon == null || model.icon == "") + return UM.Theme.getIcon("LinkExternal") + return UM.Theme.getIcon(model.icon) + } height: UM.Theme.getSize("message_action_button").height } }