Check the new version asynchronously 修复拓竹用户不同步设备列表 (#1893)

修复:拓竹用户不同步设备列表
优化:检查更新时概率卡住GUI

Co-authored-by: ZdDroid <601865048@qq.com>
This commit is contained in:
ZdDroid 2023-08-23 20:16:24 +08:00 committed by GitHub
parent 5072bf3d16
commit cd8a377f09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1182,6 +1182,9 @@ void GUI_App::post_init()
});
}
if (is_user_login())
request_user_handle(0);
if(!m_networking_need_update && m_agent) {
m_agent->set_on_ssdp_msg_fn(
[this](std::string json_str) {
@ -4189,7 +4192,7 @@ void GUI_App::check_new_version_sf(bool show_tips, int by_user)
evt->SetString((i_am_pre ? best_pre : best_release).to_string());
GUI::wxGetApp().QueueEvent(evt);
})
.perform_sync();;
.perform();
}