mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 06:45:52 +08: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
@ -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…
x
Reference in New Issue
Block a user