mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-13 13:29:03 +08:00
move version to 2.2.51.1
a log & failsafe for when the ui file is bad/not complete.
This commit is contained in:
parent
055cfb80c9
commit
c68e94daf2
@ -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);
|
||||
|
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user