mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 17:58:03 -06:00
Snapshots extended to capture and restore sla_print, sla_material,
physical_printers. Updated the snapshots dialog to display sla_print and sla_material. Updated the snapshots dialog to display physical_printer instead of printer if the physical_printer key is nonempty. The "physical_printer" key was moved from [extras] to [presets] section of PrusaSlicer.ini
This commit is contained in:
parent
15a75ec6b0
commit
06c16b085d
6 changed files with 74 additions and 26 deletions
|
@ -458,7 +458,7 @@ void PresetBundle::load_selections(AppConfig &config, const std::string &preferr
|
|||
this->update_multi_material_filament_presets();
|
||||
|
||||
// Parse the initial physical printer name.
|
||||
std::string initial_physical_printer_name = remove_ini_suffix(config.get("extras", "physical_printer"));
|
||||
std::string initial_physical_printer_name = remove_ini_suffix(config.get("presets", "physical_printer"));
|
||||
|
||||
// Activate physical printer from the config
|
||||
if (!initial_physical_printer_name.empty())
|
||||
|
@ -482,8 +482,7 @@ void PresetBundle::export_selections(AppConfig &config)
|
|||
config.set("presets", "sla_print", sla_prints.get_selected_preset_name());
|
||||
config.set("presets", "sla_material", sla_materials.get_selected_preset_name());
|
||||
config.set("presets", "printer", printers.get_selected_preset_name());
|
||||
|
||||
config.set("extras", "physical_printer", physical_printers.get_selected_full_printer_name());
|
||||
config.set("presets", "physical_printer", physical_printers.get_selected_full_printer_name());
|
||||
}
|
||||
|
||||
DynamicPrintConfig PresetBundle::full_config() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue