diff options
author | bubnikv <bubnikv@gmail.com> | 2017-12-20 13:28:16 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2017-12-20 13:28:16 +0300 |
commit | 558a0753c1a541a68e2cac7e61ed58e641bce8f8 (patch) | |
tree | 0c212dee334224b59ab0bb876d3644d8497feb18 /xs/xsp/GUI_Preset.xsp | |
parent | c49d6a3ec781e6100ddeace0388502ba840665c7 (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.xsp | 8 |
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 { |