FIX: fix cannot connect to server

Change-Id: Id3a4e2316c4f9a513b6acffda0bf08636441990b
This commit is contained in:
gerrit 2022-07-23 18:54:45 +08:00 committed by Lane.Wei
parent 7bcd4d3a50
commit 0df07fcfde
1 changed files with 3 additions and 1 deletions

View File

@ -1962,6 +1962,8 @@ bool GUI_App::on_init_inner()
// Suppress the '- default -' presets.
preset_bundle->set_default_suppressed(true);
Bind(EVT_USER_LOGIN, &GUI_App::on_user_login, this);
on_init_network();
//BBS if load user preset failed
@ -2063,7 +2065,7 @@ bool GUI_App::on_init_inner()
//#endif //__APPLE__
Bind(EVT_HTTP_ERROR, &GUI_App::on_http_error, this);
Bind(EVT_USER_LOGIN, &GUI_App::on_user_login, this);
Bind(wxEVT_IDLE, [this](wxIdleEvent& event)
{