add property to options

This commit is contained in:
Michael Kirsch 2019-07-13 00:22:30 +02:00 committed by Joseph Lenox
parent 7a16ec96de
commit a9a14225b2
2 changed files with 10 additions and 2 deletions

View File

@ -96,7 +96,8 @@ our $Settings = {
nudge_val => 1,
rotation_controls => 'z',
reload_hide_dialog => 0,
reload_behavior => 0
reload_behavior => 0,
reload_preserve_trafo => 1
},
};

View File

@ -97,9 +97,16 @@ sub new {
opt_id => 'reload_hide_dialog',
type => 'bool',
label => 'Hide Dialog on Reload',
tooltip => 'When checked, the dialog on reloading files with added parts & modifiers is suppressed. The reload is performed according to the option given in \'Default Reload Behavior\'',
tooltip => 'When checked, the dialog on reloading files with added parts & modifiers is suppressed. The reload is performed according to the option given in \'Default Reload Behavior\' and \'Keep Transformation on Reload\'',
default => $Slic3r::GUI::Settings->{_}{reload_hide_dialog},
));
$optgroup->append_single_option_line(Slic3r::GUI::OptionsGroup::Option->new( # reload preserve transformation
opt_id => 'reload_preserve_trafo',
type => 'bool',
label => 'Keep Transformations on Reload',
tooltip => 'When checked, the \'Reload from disk\' function tries to preserve the current orientation of the object on the bed by applying the same transformation to the reloaded object.',
default => $Slic3r::GUI::Settings->{_}{reload_preserve_trafo},
));
$optgroup->append_single_option_line(Slic3r::GUI::OptionsGroup::Option->new( # default reload behavior
opt_id => 'reload_behavior',
type => 'select',