Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVojtech Kral <vojtech@kral.hk>2019-08-27 17:59:07 +0300
committerVojtech Kral <vojtech@kral.hk>2019-09-17 14:20:06 +0300
commit9a465514ff1169d9fece05449d37285f4997b346 (patch)
treedb56789fd172d472483c9929995b8a5b806d7457 /src/slic3r/GUI/PresetBundle.hpp
parent270008a3fd7bade37d5cd26e1c219fa26cc42738 (diff)
Filament and material default installation based on enabled printers
Diffstat (limited to 'src/slic3r/GUI/PresetBundle.hpp')
-rw-r--r--src/slic3r/GUI/PresetBundle.hpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/slic3r/GUI/PresetBundle.hpp b/src/slic3r/GUI/PresetBundle.hpp
index d7ec5e3f0..0fea2a0f8 100644
--- a/src/slic3r/GUI/PresetBundle.hpp
+++ b/src/slic3r/GUI/PresetBundle.hpp
@@ -38,10 +38,6 @@ public:
// Export selections (current print, current filaments, current printer) into config.ini
void export_selections(AppConfig &config);
- // Make sure filament and sla_materials section in AppConfig are initialized
- // to defaults from vendor profiles if they don't exist already
- void init_materials_selection(AppConfig &config) const;
-
PresetCollection prints;
PresetCollection sla_prints;
PresetCollection filaments;
@@ -151,9 +147,14 @@ private:
// If the "vendor" section is missing, enable all models and variants of the particular vendor.
void load_installed_printers(const AppConfig &config);
+ // Set the enabled flag for filaments and sla materials,
+ // apply defaults based on enabled printers when no filaments/materials are installed.
+ void load_installed_filaments(AppConfig &config);
+ void load_installed_sla_materials(AppConfig &config);
+
// Load selections (current print, current filaments, current printer) from config.ini
// This is done just once on application start up.
- void load_selections(const AppConfig &config, const std::string &preferred_model_id = "");
+ void load_selections(AppConfig &config, const std::string &preferred_model_id = "");
// Load print, filament & printer presets from a config. If it is an external config, then the name is extracted from the external path.
// and the external config is just referenced, not stored into user profile directory.