mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 22:13:58 -06:00
Prevent the setting items from being recreated every stage switch
CURA-5785
This commit is contained in:
parent
6fe89e3d54
commit
a490e420f0
3 changed files with 27 additions and 16 deletions
|
@ -138,12 +138,14 @@ Item
|
|||
color: UM.Theme.getColor("lining")
|
||||
}
|
||||
|
||||
Cura.PrintSetupSelector
|
||||
Item
|
||||
{
|
||||
width: UM.Theme.getSize("print_setup_widget").width
|
||||
height: parent.height
|
||||
onShowTooltip: previewMenu.showTooltip(item, location, text)
|
||||
onHideTooltip: previewMenu.hideTooltip()
|
||||
id: printSetupSelectorItem
|
||||
// This is a work around to prevent the printSetupSelector from having to be re-loaded every time
|
||||
// a stage switch is done.
|
||||
children: [printSetupSelector]
|
||||
height: childrenRect.height
|
||||
width: childrenRect.width
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue