mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-09-08 16:07:25 -06:00
disable other manageButtons when actions is performed
Still need to make this transfer to the detaile card Contributes to: CURA-8587
This commit is contained in:
parent
ff5a4a4f5a
commit
08067432c6
1 changed files with 4 additions and 0 deletions
|
@ -16,6 +16,8 @@ RowLayout
|
||||||
property string busyPrimaryText: busyMessageText.text
|
property string busyPrimaryText: busyMessageText.text
|
||||||
property string busySecondaryText: busyMessageText.text
|
property string busySecondaryText: busyMessageText.text
|
||||||
property string mainState: "primary"
|
property string mainState: "primary"
|
||||||
|
property bool enabled: true
|
||||||
|
readonly property bool busy: state == "busy"
|
||||||
|
|
||||||
signal clicked(bool primary_action)
|
signal clicked(bool primary_action)
|
||||||
|
|
||||||
|
@ -25,6 +27,7 @@ RowLayout
|
||||||
{
|
{
|
||||||
id: primaryButton
|
id: primaryButton
|
||||||
visible: false
|
visible: false
|
||||||
|
enabled: manageButton.enabled
|
||||||
|
|
||||||
onClicked:
|
onClicked:
|
||||||
{
|
{
|
||||||
|
@ -37,6 +40,7 @@ RowLayout
|
||||||
{
|
{
|
||||||
id: secondaryButton
|
id: secondaryButton
|
||||||
visible: false
|
visible: false
|
||||||
|
enabled: manageButton.enabled
|
||||||
|
|
||||||
onClicked:
|
onClicked:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue