mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-25 20:02:17 +00:00
fixes an issue that devmgr ping cloud server every second
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -913,12 +913,13 @@ namespace Slic3r
|
||||
}
|
||||
|
||||
// do some refresh
|
||||
if (Slic3r::GUI::wxGetApp().is_user_login(Slic3r::GUI::wxGetApp().get_printer_cloud_provider()))
|
||||
const auto cloud_provider = Slic3r::GUI::wxGetApp().get_printer_cloud_provider();
|
||||
if (Slic3r::GUI::wxGetApp().is_user_login(cloud_provider))
|
||||
{
|
||||
m_manager->check_pushing();
|
||||
try
|
||||
{
|
||||
agent->refresh_connection();
|
||||
agent->refresh_connection(cloud_provider);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
|
||||
@@ -116,7 +116,7 @@ public:
|
||||
class DeviceManagerRefresher : public wxObject
|
||||
{
|
||||
wxTimer* m_timer{ nullptr };
|
||||
int m_timer_interval_msec = 1000;
|
||||
int m_timer_interval_msec = 5000;
|
||||
|
||||
DeviceManager* m_manager{ nullptr };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user