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

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2017-12-20 13:28:16 +0300
committerbubnikv <bubnikv@gmail.com>2017-12-20 13:28:16 +0300
commit558a0753c1a541a68e2cac7e61ed58e641bce8f8 (patch)
tree0c212dee334224b59ab0bb876d3644d8497feb18 /xs/xsp/GUI_Preset.xsp
parentc49d6a3ec781e6100ddeace0388502ba840665c7 (diff)
Improved loading of the config wizard results.
Fixed some updates of the "compatible with printer" flags at the print and filament presets.
Diffstat (limited to 'xs/xsp/GUI_Preset.xsp')
-rw-r--r--xs/xsp/GUI_Preset.xsp8
1 files changed, 8 insertions, 0 deletions
diff --git a/xs/xsp/GUI_Preset.xsp b/xs/xsp/GUI_Preset.xsp
index ed5db01e9..0e6b1504b 100644
--- a/xs/xsp/GUI_Preset.xsp
+++ b/xs/xsp/GUI_Preset.xsp
@@ -119,6 +119,14 @@ PresetCollection::arrayref()
Slic3r::data_dir().c_str(), e.what());
}
%};
+ void load_config(const char *name, DynamicPrintConfig *config)
+ %code%{
+ try {
+ THIS->load_config(name, *config);
+ } catch (std::exception& e) {
+ croak("Loading a configuration %s failed:\n%s\n", name, e.what());
+ }
+ %};
void load_config_file(const char *path)
%code%{
try {