FIX:fixed error msg cannot be displayed in the bind dialog

Change-Id: Id64a755c91eed08dc5c9beeea17959b16ea4f4f0
This commit is contained in:
tao wang 2023-07-10 16:02:20 +08:00 committed by Lane.Wei
parent 8ebe2fb4d3
commit 69f69b8eb3
3 changed files with 13 additions and 13 deletions

View file

@ -5724,8 +5724,8 @@ void GUI_App::preset_deleted_from_cloud(std::string setting_id)
wxString GUI_App::filter_string(wxString str)
{
std::string result = str.ToStdString();
std::string input = str.ToStdString();
std::string result = str.utf8_string();
std::string input = str.utf8_string();
std::regex domainRegex(R"(([a-zA-Z0-9.-]+\.[a-zA-Z]{2,}(?:\.[a-zA-Z]{2,})?))");
@ -5739,7 +5739,7 @@ wxString GUI_App::filter_string(wxString str)
++it;
}
return result;
return wxString::FromUTF8(result);
}
bool GUI_App::OnExceptionInMainLoop()