mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-04 05:50:48 +08:00
add property to options
This commit is contained in:
parent
7a16ec96de
commit
a9a14225b2
@ -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
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user