Skip version check on App startup

This commit is contained in:
SoftFever 2022-11-30 00:04:25 +08:00
parent 264b0ee891
commit eeb8b6eb37

View file

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