mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-31 20:51:12 -06:00
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:
parent
ca4bd96d5d
commit
679aa2822c
8 changed files with 21 additions and 41 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -147,7 +147,7 @@ sub save_preset {
|
|||
return unless $dlg->ShowModal == wxID_OK;
|
||||
$name = $dlg->get_name;
|
||||
}
|
||||
# Save the preset into Slic3r::data_dir/section_name/preset_name.ini
|
||||
# Save the preset into Slic3r::data_dir/presets/section_name/preset_name.ini
|
||||
eval { $self->{presets}->save_current_preset($name); };
|
||||
Slic3r::GUI::catch_error($self) and return;
|
||||
# Add the new item into the UI component, remove dirty flags and activate the saved item.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue