diff options
author | supermerill <merill@free.fr> | 2020-06-05 16:14:48 +0300 |
---|---|---|
committer | supermerill <merill@free.fr> | 2020-06-05 16:14:48 +0300 |
commit | c68e94daf2339888ae8f9e5b196075ea00bd5af0 (patch) | |
tree | 42edf292358bbf72807ce28a42fed8d55d7e7fca | |
parent | 055cfb80c9f9850456067a03935c8c9ac18cfc42 (diff) |
move version to 2.2.51.12.2.51.1latest_release
a log & failsafe for when the ui file is bad/not complete.
-rw-r--r-- | src/slic3r/GUI/Tab.cpp | 10 | ||||
-rw-r--r-- | version.inc | 4 |
2 files changed, 9 insertions, 5 deletions
diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp index ec8ca606b..c348cc23a 100644 --- a/src/slic3r/GUI/Tab.cpp +++ b/src/slic3r/GUI/Tab.cpp @@ -1123,7 +1123,7 @@ t_change set_or_add(t_change previous, t_change toadd) { } catch (const std::exception & ex) { - std::cout << "Exception while calling group event about "<<opt_key<<": " << ex.what(); + std::cerr << "Exception while calling group event about "<<opt_key<<": " << ex.what(); throw ex; } }; @@ -1131,10 +1131,13 @@ t_change set_or_add(t_change previous, t_change toadd) { bool Tab::create_pages(std::string setting_type_name, int idx_page) { - std::cout << "create settings " << setting_type_name << "\n"; //search for the file const boost::filesystem::path ui_layout_file = (boost::filesystem::path(resources_dir()) / "ui_layout" / setting_type_name).make_preferred(); - if (! boost::filesystem::exists(ui_layout_file)) return false; + if (!boost::filesystem::exists(ui_layout_file)) { + std::cerr << "Error: cannot create " << setting_type_name << "settings, cannot find file " << ui_layout_file << "\n"; + return false; + }else + std::cout << "create settings " << setting_type_name << "\n"; #ifdef __WXMSW__ bool first_page = true; @@ -3268,6 +3271,7 @@ wxSizer* TabPrinter::create_bed_shape_widget(wxWindow* parent) void Tab::compatible_widget_reload(PresetDependencies &deps) { + if (deps.btn == nullptr) return; // check if it has been initalised (should be, but someone may want to remove it from the ui) bool has_any = ! m_config->option<ConfigOptionStrings>(deps.key_list)->values.empty(); has_any ? deps.btn->Enable() : deps.btn->Disable(); deps.checkbox->SetValue(! has_any); diff --git a/version.inc b/version.inc index 03b1871a2..9a9cb75bc 100644 --- a/version.inc +++ b/version.inc @@ -5,5 +5,5 @@ set(SLIC3R_APP_NAME "SuperSlicer") set(SLIC3R_APP_KEY "SuperSlicer") set(SLIC3R_VERSION "2.2.51") set(SLIC3R_BUILD_ID "SuperSlicer_${SLIC3R_VERSION}+UNKNOWN") -set(SLIC3R_RC_VERSION "2,2,51,0") -set(SLIC3R_RC_VERSION_DOTS "2.2.51.0") +set(SLIC3R_RC_VERSION "2,2,51,1") +set(SLIC3R_RC_VERSION_DOTS "2.2.51.1") |