mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 06:23:59 -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
|
@ -40,6 +40,7 @@ UM.MainWindow
|
|||
tooltip.hide();
|
||||
}
|
||||
|
||||
|
||||
Component.onCompleted:
|
||||
{
|
||||
CuraApplication.setMinimumWindowSize(UM.Theme.getSize("window_minimum_size"))
|
||||
|
@ -249,6 +250,16 @@ UM.MainWindow
|
|||
|
||||
height: UM.Theme.getSize("stage_menu").height
|
||||
source: UM.Controller.activeStage != null ? UM.Controller.activeStage.stageMenuComponent : ""
|
||||
|
||||
// The printSetupSelector is defined here so that the setting list doesn't need to get re-instantiated
|
||||
// Every time the stage is changed.
|
||||
property var printSetupSelector: Cura.PrintSetupSelector
|
||||
{
|
||||
onShowTooltip: base.showTooltip(item, location, text)
|
||||
onHideTooltip: base.hideTooltip()
|
||||
width: UM.Theme.getSize("print_setup_widget").width
|
||||
height: UM.Theme.getSize("stage_menu").height
|
||||
}
|
||||
}
|
||||
|
||||
UM.MessageStack
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue