mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 16:27:51 -06:00
Refactored the onConfirmClicked function. Added the ability to auto-dismiss the incompatible packages. Changed the button text depending on the displayed list
This commit is contained in:
parent
05e17843c6
commit
38c7d80f82
2 changed files with 10 additions and 5 deletions
|
@ -20,6 +20,8 @@ UM.Dialog{
|
|||
maximumHeight: minimumHeight
|
||||
margin: 0
|
||||
|
||||
property string buttonText: subscribedPackagesModel.hasIncompatiblePackages && !subscribedPackagesModel.hasCompatiblePackages ? "Dismiss" : "Next"
|
||||
|
||||
Rectangle
|
||||
{
|
||||
id: root
|
||||
|
@ -138,7 +140,7 @@ UM.Dialog{
|
|||
anchors.bottom: parent.bottom
|
||||
anchors.right: parent.right
|
||||
anchors.margins: UM.Theme.getSize("default_margin").height
|
||||
text: catalog.i18nc("@button", "Next")
|
||||
text: catalog.i18nc("@button", buttonText)
|
||||
onClicked: accept()
|
||||
leftPadding: UM.Theme.getSize("dialog_primary_button_padding").width
|
||||
rightPadding: UM.Theme.getSize("dialog_primary_button_padding").width
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue