mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 17:12:07 +00:00
Check the new version asynchronously 修复拓竹用户不同步设备列表 (#1893)
修复:拓竹用户不同步设备列表 优化:检查更新时概率卡住GUI Co-authored-by: ZdDroid <601865048@qq.com>
This commit is contained in:
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user