mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
Don't show en-/disable button when un-/installed
Contributes to: CURA-8587
This commit is contained in:
parent
ca76bcc29c
commit
5b3e9079ed
2 changed files with 3 additions and 2 deletions
|
@ -19,6 +19,7 @@ RowLayout
|
||||||
property string confirmedSecondaryText: confirmedMessageText.text
|
property string confirmedSecondaryText: confirmedMessageText.text
|
||||||
property bool enabled: true
|
property bool enabled: true
|
||||||
property bool busy: state == "busy"
|
property bool busy: state == "busy"
|
||||||
|
property bool confirmed: state == "confirmed"
|
||||||
|
|
||||||
signal clicked(bool primary_action)
|
signal clicked(bool primary_action)
|
||||||
|
|
||||||
|
@ -107,7 +108,7 @@ RowLayout
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
id: confirmedMessageText
|
id: confirmedMessageText
|
||||||
visible: parent.visble
|
visible: parent.visible
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
||||||
font: UM.Theme.getFont("medium_bold")
|
font: UM.Theme.getFont("medium_bold")
|
||||||
|
|
|
@ -332,7 +332,7 @@ Rectangle
|
||||||
busySecondaryText: catalog.i18nc("@button", "Disabling...")
|
busySecondaryText: catalog.i18nc("@button", "Disabling...")
|
||||||
confirmedSecondaryText: catalog.i18nc("@button", "Disabled")
|
confirmedSecondaryText: catalog.i18nc("@button", "Disabled")
|
||||||
enabled: !(installManageButton.busy || updateManageButton.busy)
|
enabled: !(installManageButton.busy || updateManageButton.busy)
|
||||||
visible: root.manageableInListView || root.expanded
|
visible: (root.manageableInListView || root.expanded) && !installManageButton.confirmed
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (primary_action)
|
if (primary_action)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue