mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 13:34:01 -06:00
Add a property to temporarily disable the material models from updating.
This allows the QMl to stop the updating when it's not even visible
This commit is contained in:
parent
8409d7d645
commit
7221b23457
3 changed files with 20 additions and 1 deletions
|
@ -15,22 +15,26 @@ Menu
|
|||
property int extruderIndex: 0
|
||||
property string currentRootMaterialId: Cura.MachineManager.currentRootMaterialId[extruderIndex]
|
||||
property string activeMaterialId: Cura.MachineManager.allActiveMaterialIds[Cura.ExtruderManager.extruderIds[extruderIndex]]
|
||||
property bool updateModels: true
|
||||
Cura.FavoriteMaterialsModel
|
||||
{
|
||||
id: favoriteMaterialsModel
|
||||
extruderPosition: menu.extruderIndex
|
||||
enabled: updateModels
|
||||
}
|
||||
|
||||
Cura.GenericMaterialsModel
|
||||
{
|
||||
id: genericMaterialsModel
|
||||
extruderPosition: menu.extruderIndex
|
||||
enabled: updateModels
|
||||
}
|
||||
|
||||
Cura.MaterialBrandsModel
|
||||
{
|
||||
id: brandModel
|
||||
extruderPosition: menu.extruderIndex
|
||||
enabled: updateModels
|
||||
}
|
||||
|
||||
MenuItem
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue