Groundwork for installing/updating packages

Contributes to: CURA-8587
This commit is contained in:
Jelle Spijker 2021-12-02 18:02:49 +01:00
parent 08067432c6
commit 3b3d986058
No known key found for this signature in database
GPG key ID: 6662DC033BE6B99A
4 changed files with 73 additions and 14 deletions

View file

@ -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
}
}
]