Show the backup item as busy while it is being restored

Previously, after pressing the "Restore" button of a backup, there was no indication about it being restored. This commit changes that by making the "Restore" button of that backup display the busy rotating wheel.

CURA-8313
This commit is contained in:
Konstantinos Karmas 2021-06-22 16:33:32 +02:00
parent 51de50cd05
commit 4f5e055cd8
2 changed files with 17 additions and 1 deletions

View file

@ -71,6 +71,7 @@ Item
text: catalog.i18nc("@button", "Restore")
enabled: !CuraDrive.isCreatingBackup && !CuraDrive.isRestoringBackup
onClicked: confirmRestoreDialog.visible = true
busy: CuraDrive.backupIdBeingRestored == modelData.backup_id && CuraDrive.isRestoringBackup
}
UM.SimpleButton