Skip to content

Commit

Permalink
add property to options
Browse files Browse the repository at this point in the history
  • Loading branch information
Oekn5w authored and lordofhyphens committed Dec 2, 2019
1 parent 7a16ec9 commit a9a1422
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/Slic3r/GUI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
};

Expand Down
9 changes: 8 additions & 1 deletion lib/Slic3r/GUI/Preferences.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit a9a1422

Please sign in to comment.