mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-14 09:46:02 +08:00
Check the new version asynchronously 修复拓竹用户不同步设备列表 (#1893)
修复:拓竹用户不同步设备列表 优化:检查更新时概率卡住GUI Co-authored-by: ZdDroid <601865048@qq.com>
This commit is contained in:
parent
5072bf3d16
commit
cd8a377f09
@ -1182,6 +1182,9 @@ void GUI_App::post_init()
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (is_user_login())
|
||||||
|
request_user_handle(0);
|
||||||
|
|
||||||
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(
|
||||||
[this](std::string json_str) {
|
[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());
|
evt->SetString((i_am_pre ? best_pre : best_release).to_string());
|
||||||
GUI::wxGetApp().QueueEvent(evt);
|
GUI::wxGetApp().QueueEvent(evt);
|
||||||
})
|
})
|
||||||
.perform_sync();;
|
.perform();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user