Skip version check on App startup

This commit is contained in:
SoftFever 2022-11-28 20:41:20 +08:00
parent 3af2c20bb2
commit 57755c766c

View file

@ -1088,21 +1088,21 @@ 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());
this->preset_updater->sync(http_url, language, preset_bundle); // this->preset_updater->sync(http_url, language, 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(