mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 16:29:01 +08:00
Allow adding multiple per object settings at once
This reuses the "GUI pattern" of the main setting visibility page. CURA-1799
This commit is contained in:
parent
7326d77605
commit
7020fd6903
@ -16,17 +16,17 @@ UM.TooltipArea
|
|||||||
width: childrenRect.width;
|
width: childrenRect.width;
|
||||||
height: childrenRect.height;
|
height: childrenRect.height;
|
||||||
|
|
||||||
Button
|
CheckBox
|
||||||
{
|
{
|
||||||
id: check
|
id: check
|
||||||
|
|
||||||
text: definition.label
|
text: definition.label
|
||||||
|
checked: addedSettingsModel.getVisible(model.key)
|
||||||
|
|
||||||
onClicked:
|
onClicked:
|
||||||
{
|
{
|
||||||
addedSettingsModel.setVisible(model.key, true);
|
addedSettingsModel.setVisible(model.key, checked);
|
||||||
settingPickDialog.visible = false
|
UM.ActiveTool.forceUpdate();
|
||||||
UM.ActiveTool.forceUpdate()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -377,7 +377,7 @@ Item {
|
|||||||
|
|
||||||
rightButtons: [
|
rightButtons: [
|
||||||
Button {
|
Button {
|
||||||
text: catalog.i18nc("@action:button", "Cancel");
|
text: catalog.i18nc("@action:button", "Close");
|
||||||
onClicked: {
|
onClicked: {
|
||||||
settingPickDialog.visible = false;
|
settingPickDialog.visible = false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user