Adding functionality to the manageButtons

Contributes to: CURA-8587
This commit is contained in:
Jelle Spijker 2021-12-02 08:21:57 +01:00
parent 327b434788
commit ff5a4a4f5a
No known key found for this signature in database
GPG key ID: 6662DC033BE6B99A
4 changed files with 34 additions and 4 deletions

View file

@ -17,7 +17,7 @@ RowLayout
property string busySecondaryText: busyMessageText.text
property string mainState: "primary"
signal clicked
signal clicked(bool primary_action)
state: mainState
@ -28,7 +28,7 @@ RowLayout
onClicked:
{
manageButton.clicked()
manageButton.clicked(true)
manageButton.state = "busy"
}
}
@ -40,7 +40,7 @@ RowLayout
onClicked:
{
manageButton.clicked()
manageButton.clicked(false)
manageButton.state = "busy"
}
}