Add ID to stage selection buttons

Necessary to switch stages in the Squish tests.

Contributes to issue CURA-6276.
This commit is contained in:
Ghostkeeper 2019-07-18 13:42:33 +02:00
parent e6512e748c
commit 4b8274d7cb
No known key found for this signature in database
GPG Key ID: 86BEF881AE2CF276

View File

@ -55,6 +55,7 @@ Item
delegate: Button delegate: Button
{ {
id: stageSelectorButton
text: model.name.toUpperCase() text: model.name.toUpperCase()
checkable: true checkable: true
checked: UM.Controller.activeStage !== null && model.id == UM.Controller.activeStage.stageId checked: UM.Controller.activeStage !== null && model.id == UM.Controller.activeStage.stageId