mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
FIX: avoid repeated login handle
Change-Id: Id18270a130299e6cd091cec4a05549cd4416b736
This commit is contained in:
@@ -1667,9 +1667,9 @@ void GUI_App::init_networking_callbacks()
|
|||||||
BOOST_LOG_TRIVIAL(info) << __FUNCTION__<< boost::format(": enter, m_agent=%1%")%m_agent;
|
BOOST_LOG_TRIVIAL(info) << __FUNCTION__<< boost::format(": enter, m_agent=%1%")%m_agent;
|
||||||
if (m_agent) {
|
if (m_agent) {
|
||||||
//set callbacks
|
//set callbacks
|
||||||
m_agent->set_on_user_login_fn([this](int online_login, bool login) {
|
//m_agent->set_on_user_login_fn([this](int online_login, bool login) {
|
||||||
GUI::wxGetApp().request_user_handle(online_login);
|
// GUI::wxGetApp().request_user_handle(online_login);
|
||||||
});
|
// });
|
||||||
|
|
||||||
m_agent->set_on_server_connected_fn([this]() {
|
m_agent->set_on_server_connected_fn([this]() {
|
||||||
if (m_is_closing) {
|
if (m_is_closing) {
|
||||||
|
|||||||
Reference in New Issue
Block a user