From cd8a377f099e9c86908cc2a8a76dec9f211ca777 Mon Sep 17 00:00:00 2001 From: ZdDroid <43038779+ZdDroid@users.noreply.github.com> Date: Wed, 23 Aug 2023 20:16:24 +0800 Subject: [PATCH] =?UTF-8?q?Check=20the=20new=20version=20asynchronously=20?= =?UTF-8?q?=20=E4=BF=AE=E5=A4=8D=E6=8B=93=E7=AB=B9=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E4=B8=8D=E5=90=8C=E6=AD=A5=E8=AE=BE=E5=A4=87=E5=88=97=E8=A1=A8?= =?UTF-8?q?=20(#1893)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复:拓竹用户不同步设备列表 优化:检查更新时概率卡住GUI Co-authored-by: ZdDroid <601865048@qq.com> --- src/slic3r/GUI/GUI_App.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index 606addc824..fd90ea4847 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -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(); }