mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Show the number of active postprocessing scripts
This commit is contained in:
parent
7c70ace8f0
commit
0f662da2c3
1 changed files with 26 additions and 5 deletions
|
@ -484,15 +484,36 @@ UM.Dialog
|
||||||
onClicked: dialog.accept()
|
onClicked: dialog.accept()
|
||||||
}
|
}
|
||||||
|
|
||||||
Cura.SecondaryButton
|
Item
|
||||||
{
|
{
|
||||||
objectName: "postProcessingSaveAreaButton"
|
objectName: "postProcessingSaveAreaButton"
|
||||||
visible: activeScriptsList.count > 0
|
visible: activeScriptsList.count > 0
|
||||||
height: UM.Theme.getSize("action_button").height
|
height: UM.Theme.getSize("action_button").height
|
||||||
width: height
|
width: height
|
||||||
tooltip: catalog.i18nc("@info:tooltip", "Change active post-processing scripts")
|
|
||||||
onClicked: dialog.show()
|
Cura.SecondaryButton
|
||||||
iconSource: "postprocessing.svg"
|
{
|
||||||
fixedWidthMode: true
|
height: UM.Theme.getSize("action_button").height
|
||||||
|
tooltip: catalog.i18nc("@info:tooltip", "Change active post-processing scripts")
|
||||||
|
toolTipContentAlignment: Cura.ToolTip.ContentAlignment.AlignLeft
|
||||||
|
onClicked: dialog.show()
|
||||||
|
iconSource: "postprocessing.svg"
|
||||||
|
fixedWidthMode: false
|
||||||
|
}
|
||||||
|
|
||||||
|
Cura.NotificationIcon
|
||||||
|
{
|
||||||
|
id: activeScriptCountIcon
|
||||||
|
visible: activeScriptsList.count > 0
|
||||||
|
anchors
|
||||||
|
{
|
||||||
|
top: parent.top
|
||||||
|
right: parent.right
|
||||||
|
rightMargin: (-0.5 * width) | 0
|
||||||
|
topMargin: (-0.5 * height) | 0
|
||||||
|
}
|
||||||
|
|
||||||
|
labelText: activeScriptsList.count
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue