Tell what options were changed when prompting user for saving a modified preset. Also, check whether the preset was actually modified by performing a proper idempotent diff. #2165
This commit is contained in:
parent
5a0f4eac8d
commit
70601eeb51
3 changed files with 112 additions and 88 deletions
|
@ -552,9 +552,10 @@ PrintConfigDef::build_def() {
|
|||
Options["perimeter_speed"].min = 0;
|
||||
|
||||
Options["perimeters"].type = coInt;
|
||||
Options["perimeters"].label = "Perimeters (minimum)";
|
||||
Options["perimeters"].label = "Perimeters";
|
||||
Options["perimeters"].category = "Layers and Perimeters";
|
||||
Options["perimeters"].tooltip = "This option sets the number of perimeters to generate for each layer. Note that Slic3r may increase this number automatically when it detects sloping surfaces which benefit from a higher number of perimeters if the Extra Perimeters option is enabled.";
|
||||
Options["perimeters"].sidetext = "(minimum)";
|
||||
Options["perimeters"].cli = "perimeters=i";
|
||||
Options["perimeters"].aliases.push_back("perimeter_offsets");
|
||||
Options["perimeters"].min = 0;
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
%code{% THIS->apply(*other, true); %};
|
||||
std::vector<std::string> diff(DynamicPrintConfig* other)
|
||||
%code{% RETVAL = THIS->diff(*other); %};
|
||||
bool equals(DynamicPrintConfig* other)
|
||||
%code{% RETVAL = THIS->equals(*other); %};
|
||||
void apply_static(FullPrintConfig* other)
|
||||
%code{% THIS->apply(*other, true); %};
|
||||
std::vector<std::string> get_keys()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue