Peristance of 'Installed' text.

part of CURA-8587
This commit is contained in:
Remco Burema 2021-12-07 21:23:54 +01:00
parent 3be6747e5d
commit a61c3e9eff
No known key found for this signature in database
GPG key ID: 215C49431D43F98C
3 changed files with 9 additions and 2 deletions

View file

@ -19,6 +19,7 @@ RowLayout
property string confirmedSecondaryText: confirmedMessageText.text
property bool busy
property bool confirmed
property bool confirmedTextChoice: true
signal clicked(bool primary_action)
@ -228,6 +229,7 @@ RowLayout
{
target: confirmedMessage
visible: true
text: manageButton.confirmedTextChoice ? manageButton.confirmedPrimaryText : manageButton.confirmedSecondaryText
}
}
]

View file

@ -361,10 +361,9 @@ Rectangle
secondaryText: catalog.i18nc("@button", "Uninstall")
busySecondaryText: catalog.i18nc("@button", "Uninstalling...")
confirmedSecondaryText: catalog.i18nc("@button", "Uninstalled")
confirmedTextChoice: packageData.isRecentlyInstalled
enabled: !(enableManageButton.busy || updateManageButton.busy)
onStateChanged: print(packageData.displayName + " " + state) // TODO: Cleanup once you find out why this happens
onClicked:
{
if (primary_action)