mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Fix: Switches to 'Prepare' always go through 'Recomended' mode
CURA-5731
This commit is contained in:
parent
cbad60898a
commit
3f8b7fb6af
1 changed files with 7 additions and 4 deletions
|
|
@ -14,7 +14,7 @@ Rectangle
|
||||||
{
|
{
|
||||||
id: base
|
id: base
|
||||||
|
|
||||||
property int currentModeIndex
|
property int currentModeIndex: -1
|
||||||
property bool hideSettings: PrintInformation.preSliced
|
property bool hideSettings: PrintInformation.preSliced
|
||||||
property bool hideView: Cura.MachineManager.activeMachineName == ""
|
property bool hideView: Cura.MachineManager.activeMachineName == ""
|
||||||
|
|
||||||
|
|
@ -262,7 +262,6 @@ Rectangle
|
||||||
ListView
|
ListView
|
||||||
{
|
{
|
||||||
id: modesList
|
id: modesList
|
||||||
property var index: 0
|
|
||||||
model: modesListModel
|
model: modesListModel
|
||||||
delegate: wizardDelegate
|
delegate: wizardDelegate
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
|
|
@ -582,13 +581,17 @@ Rectangle
|
||||||
tooltipText: catalog.i18nc("@tooltip", "<b>Custom Print Setup</b><br/><br/>Print with finegrained control over every last bit of the slicing process."),
|
tooltipText: catalog.i18nc("@tooltip", "<b>Custom Print Setup</b><br/><br/>Print with finegrained control over every last bit of the slicing process."),
|
||||||
item: sidebarAdvanced
|
item: sidebarAdvanced
|
||||||
})
|
})
|
||||||
sidebarContents.replace(modesListModel.get(base.currentModeIndex).item, { "immediate": true })
|
|
||||||
|
|
||||||
var index = Math.round(UM.Preferences.getValue("cura/active_mode"))
|
var index = Math.round(UM.Preferences.getValue("cura/active_mode"))
|
||||||
if(index)
|
|
||||||
|
if(index != null && !isNaN(index))
|
||||||
{
|
{
|
||||||
currentModeIndex = index;
|
currentModeIndex = index;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
currentModeIndex = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
UM.SettingPropertyProvider
|
UM.SettingPropertyProvider
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue