mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-01 14:51:07 -07:00
Groundwork for installing/updating packages
Contributes to: CURA-8587
This commit is contained in:
parent
08067432c6
commit
3b3d986058
4 changed files with 73 additions and 14 deletions
|
|
@ -17,11 +17,11 @@ RowLayout
|
|||
property string busySecondaryText: busyMessageText.text
|
||||
property string mainState: "primary"
|
||||
property bool enabled: true
|
||||
readonly property bool busy: state == "busy"
|
||||
property bool busy: false
|
||||
|
||||
signal clicked(bool primary_action)
|
||||
|
||||
state: mainState
|
||||
state: busy ? "busy" : mainState
|
||||
|
||||
Cura.PrimaryButton
|
||||
{
|
||||
|
|
@ -32,7 +32,6 @@ RowLayout
|
|||
onClicked:
|
||||
{
|
||||
manageButton.clicked(true)
|
||||
manageButton.state = "busy"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -45,7 +44,6 @@ RowLayout
|
|||
onClicked:
|
||||
{
|
||||
manageButton.clicked(false)
|
||||
manageButton.state = "busy"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -155,7 +153,7 @@ RowLayout
|
|||
PropertyChanges
|
||||
{
|
||||
target: busyMessage
|
||||
visible: true
|
||||
visible: manageButton.visible
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue