mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 21:15:56 +08:00
Add a combo box to select active profile
This commit is contained in:
parent
09cfda095b
commit
255caf8693
@ -60,6 +60,29 @@ Rectangle {
|
|||||||
onCurrentModeIndexChanged: UM.Preferences.setValue("cura/active_mode", currentModeIndex);
|
onCurrentModeIndexChanged: UM.Preferences.setValue("cura/active_mode", currentModeIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Item {
|
||||||
|
Layout.fillWidth: true;
|
||||||
|
implicitHeight: UM.Theme.sizes.setting.height;
|
||||||
|
|
||||||
|
Row {
|
||||||
|
spacing: UM.Theme.sizes.default_margin.width;
|
||||||
|
Label {
|
||||||
|
anchors.verticalCenter: parent.verticalCenter;
|
||||||
|
text: "Global Profile";
|
||||||
|
}
|
||||||
|
|
||||||
|
ComboBox {
|
||||||
|
anchors.verticalCenter: parent.verticalCenter;
|
||||||
|
model: UM.ProfilesModel { }
|
||||||
|
textRole: "name"
|
||||||
|
onActivated: UM.MachineManager.setActiveProfile(model.getItem(index).name)
|
||||||
|
}
|
||||||
|
|
||||||
|
Button {
|
||||||
|
text: "Save";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loader {
|
Loader {
|
||||||
id: sidebarContents;
|
id: sidebarContents;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user