mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
ENH: [STUDIO-2759] network queue on main thread
Change-Id: Ie1fa855b354047ab015c801cae5df7271e844e58
This commit is contained in:
parent
5a7aa74e62
commit
8dae5b6980
5 changed files with 26 additions and 3 deletions
|
@ -1958,6 +1958,9 @@ void GUI_App::init_networking_callbacks()
|
|||
});
|
||||
};
|
||||
m_agent->set_on_local_message_fn(lan_message_arrive_fn);
|
||||
m_agent->set_queue_on_main_fn([this](std::function<void()> callback) {
|
||||
CallAfter(callback);
|
||||
});
|
||||
}
|
||||
BOOST_LOG_TRIVIAL(info) << __FUNCTION__<< boost::format(": exit, m_agent=%1%")%m_agent;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue