diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index 44450ed448..d195402015 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -1088,22 +1088,22 @@ void GUI_App::post_init() // to popup a modal dialog on start without screwing combo boxes. // This is ugly but I honestly found no better way to do it. // Neither wxShowEvent nor wxWindowCreateEvent work reliably. - //if (this->preset_updater) { // G-Code Viewer does not initialize preset_updater. - // BOOST_LOG_TRIVIAL(info) << "before check_updates"; - // this->check_updates(false); - // BOOST_LOG_TRIVIAL(info) << "after check_updates"; - // CallAfter([this] { - // bool cw_showed = this->config_wizard_startup(); + if (this->preset_updater) { // G-Code Viewer does not initialize preset_updater. + BOOST_LOG_TRIVIAL(info) << "before check_updates"; + this->check_updates(false); + BOOST_LOG_TRIVIAL(info) << "after check_updates"; + CallAfter([this] { + bool cw_showed = this->config_wizard_startup(); - // std::string http_url = get_http_url(app_config->get_country_code()); - // std::string language = GUI::into_u8(current_language_code()); - // std::string network_ver = Slic3r::NetworkAgent::get_version(); - // this->preset_updater->sync(http_url, language, network_ver, preset_bundle); + std::string http_url = get_http_url(app_config->get_country_code()); + std::string language = GUI::into_u8(current_language_code()); + std::string network_ver = Slic3r::NetworkAgent::get_version(); + this->preset_updater->sync(http_url, language, network_ver, preset_bundle); - // //BBS: check new version - // this->check_new_version(); - // }); - //} + //BBS: check new version + //this->check_new_version(); + }); + } if(!m_networking_need_update && m_agent) { m_agent->set_on_ssdp_msg_fn(