|
@@ -87,15 +87,6 @@ Rectangle
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- onCurrentModeIndexChanged:
|
|
|
- {
|
|
|
- UM.Preferences.setValue("cura/active_mode", currentModeIndex);
|
|
|
- if(modesListModel.count > base.currentModeIndex)
|
|
|
- {
|
|
|
- sidebarContents.push({ "item": modesListModel.get(base.currentModeIndex).item, "replace": true });
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
SidebarHeader {
|
|
|
id: header
|
|
|
width: parent.width
|
|
@@ -114,6 +105,15 @@ Rectangle
|
|
|
anchors.topMargin: visible ? UM.Theme.getSize("sidebar_margin").height : 0
|
|
|
}
|
|
|
|
|
|
+ onCurrentModeIndexChanged:
|
|
|
+ {
|
|
|
+ UM.Preferences.setValue("cura/active_mode", currentModeIndex);
|
|
|
+ if(modesListModel.count > base.currentModeIndex)
|
|
|
+ {
|
|
|
+ sidebarContents.push({ "item": modesListModel.get(base.currentModeIndex).item, "replace": true });
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
Label {
|
|
|
id: settingsModeLabel
|
|
|
text: !hideSettings ? catalog.i18nc("@label:listbox", "Print Setup") : catalog.i18nc("@label:listbox","Print Setup disabled\nG-code files cannot be modified");
|