mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-19 14:51:11 -06:00
Check the new version asynchronously 修复拓竹用户不同步设备列表 (#1893)
修复:拓竹用户不同步设备列表 优化:检查更新时概率卡住GUI Co-authored-by: ZdDroid <601865048@qq.com>
This commit is contained in:
parent
5072bf3d16
commit
cd8a377f09
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue