mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Simplify enabled busy state
both the `installManageButton` and `updateManageButton` are busy when `packageData.busy`, so the `!(installManageButton.busy || updateManageButton.busy)` check didn't make much sense. CURA-8587
This commit is contained in:
parent
c338d8f5ce
commit
5f444fa5b7
1 changed files with 3 additions and 4 deletions
|
@ -182,7 +182,7 @@ Item
|
|||
{
|
||||
id: enableManageButton
|
||||
visible: showManageButtons && packageData.isInstalled && packageData.packageType != "material"
|
||||
enabled: !(installManageButton.busy || updateManageButton.busy)
|
||||
enabled: !packageData.busy
|
||||
|
||||
button_style: !packageData.isActive
|
||||
Layout.alignment: Qt.AlignTop
|
||||
|
@ -196,7 +196,7 @@ Item
|
|||
{
|
||||
id: installManageButton
|
||||
visible: showManageButtons && (packageData.canDowngrade || !packageData.isBundled)
|
||||
enabled: !updateManageButton.busy
|
||||
enabled: !packageData.busy
|
||||
busy: packageData.busy
|
||||
button_style: !packageData.isInstalled
|
||||
Layout.alignment: Qt.AlignTop
|
||||
|
@ -226,8 +226,7 @@ Item
|
|||
{
|
||||
id: updateManageButton
|
||||
visible: showManageButtons && packageData.canUpdate
|
||||
enabled: !installManageButton.busy
|
||||
|
||||
enabled: !packageData.busy
|
||||
busy: packageData.busy
|
||||
Layout.alignment: Qt.AlignTop
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue