From 00f406b5dd8ad9eb02281b4ffec880a6cbd6cc05 Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Fri, 28 Feb 2020 22:51:37 +0100 Subject: [PATCH] Add list of active scripts to tooltip --- .../PostProcessingPlugin.qml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/plugins/PostProcessingPlugin/PostProcessingPlugin.qml b/plugins/PostProcessingPlugin/PostProcessingPlugin.qml index 61b172c6bc..f94c0a1cca 100644 --- a/plugins/PostProcessingPlugin/PostProcessingPlugin.qml +++ b/plugins/PostProcessingPlugin/PostProcessingPlugin.qml @@ -494,7 +494,24 @@ UM.Dialog Cura.SecondaryButton { height: UM.Theme.getSize("action_button").height - tooltip: catalog.i18nc("@info:tooltip", "Change active post-processing scripts") + tooltip: + { + var tipText = catalog.i18nc("@info:tooltip", "Change active post-processing scripts."); + if (activeScriptsList.count > 0) + { + tipText += "

" + catalog.i18ncp("@info:tooltip", + "The following script is active:", + "The following scripts are active:", + activeScriptsList.count + ) + ""; + } + return tipText + } toolTipContentAlignment: Cura.ToolTip.ContentAlignment.AlignLeft onClicked: dialog.show() iconSource: "postprocessing.svg"