mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 01:29:00 +08:00
Select the current profile when showing the profiles page
This commit is contained in:
parent
05b3654346
commit
3546af86e8
@ -377,6 +377,20 @@ Item
|
||||
|
||||
model: qualitiesModel
|
||||
|
||||
Component.onCompleted:
|
||||
{
|
||||
var selectedItemName = Cura.MachineManager.activeQualityOrQualityChangesName;
|
||||
|
||||
// Select the required quality name if given
|
||||
for (var idx = 0; idx < qualitiesModel.rowCount(); idx++) {
|
||||
var item = qualitiesModel.getItem(idx);
|
||||
if (item.name == selectedItemName) {
|
||||
currentIndex = idx;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
section.property: "is_read_only"
|
||||
section.delegate: Rectangle
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user