Moved the Slic3rPE/print,filament,printer folders to

Slic3rPE/presets/print,filament,printer
to separate the presets from further data stored into the Slic3rPE
directory.
This commit is contained in:
bubnikv 2017-12-10 22:11:00 +01:00
parent ca4bd96d5d
commit 679aa2822c
8 changed files with 21 additions and 41 deletions

View file

@ -100,16 +100,12 @@ sub OnInit {
# Suppress the '- default -' presets.
$self->{preset_bundle}->set_default_suppressed($self->{app_config}->get('no_defaults') ? 1 : 0);
eval {
$self->{preset_bundle}->load_presets(Slic3r::data_dir);
};
eval { $self->{preset_bundle}->load_presets };
if ($@) {
warn $@ . "\n";
show_error(undef, $@);
}
eval {
$self->{preset_bundle}->load_selections($self->{app_config});
};
eval { $self->{preset_bundle}->load_selections($self->{app_config}) };
$run_wizard = 1 if $self->{preset_bundle}->has_defauls_only;
# application frame