mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Specify both Ultimaker B.V. and Custom as preferred categories
This requires commit 91c6abfc56162aedc887098744533dfcd8f1cdd5 on Ultimaker/Cura. Contributes to issue CURA-6640.
This commit is contained in:
parent
40169809bc
commit
483e343b38
1 changed files with 6 additions and 3 deletions
|
@ -22,9 +22,12 @@ Item
|
||||||
? machineList.model.getItem(machineList.currentIndex)
|
? machineList.model.getItem(machineList.currentIndex)
|
||||||
: null
|
: null
|
||||||
// The currently active (expanded) section/category, where section/category is the grouping of local machine items.
|
// The currently active (expanded) section/category, where section/category is the grouping of local machine items.
|
||||||
property string currentSection: preferredCategory
|
property string currentSection: "Ultimaker B.V."
|
||||||
// By default (when this list shows up) we always expand the "Ultimaker" section.
|
// By default (when this list shows up) we always expand the "Ultimaker" section.
|
||||||
property string preferredCategory: "Ultimaker B.V."
|
property var preferredCategories: {
|
||||||
|
"Ultimaker B.V.": -2,
|
||||||
|
"Custom": -1
|
||||||
|
}
|
||||||
|
|
||||||
property int maxItemCountAtOnce: 10 // show at max 10 items at once, otherwise you need to scroll.
|
property int maxItemCountAtOnce: 10 // show at max 10 items at once, otherwise you need to scroll.
|
||||||
|
|
||||||
|
@ -90,7 +93,7 @@ Item
|
||||||
id: machineDefinitionsModel
|
id: machineDefinitionsModel
|
||||||
filter: { "visible": true }
|
filter: { "visible": true }
|
||||||
sectionProperty: "manufacturer"
|
sectionProperty: "manufacturer"
|
||||||
preferredSectionValue: preferredCategory
|
preferredSections: preferredCategories
|
||||||
}
|
}
|
||||||
|
|
||||||
section.property: "section"
|
section.property: "section"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue