ENH: Reset MWPage When LoginStatus Change

JIRA: none
Change-Id: I145aa099e82f0d8a8052bd1d19d4e20d979027e9
This commit is contained in:
zorro.zhang 2024-06-07 14:18:15 +08:00 committed by Lane.Wei
parent cc75e97e4f
commit a84374ed3a
1 changed files with 2 additions and 0 deletions

View File

@ -281,6 +281,7 @@ void WebViewPanel::ResetWholePage()
RunScript(strJS);
//online
m_online_spec_id = "";
auto host = wxGetApp().get_model_http_url(wxGetApp().app_config->get_country_code());
std::string mwurl = (boost::format("%1%studio/webview?from=bambustudio") % host).str();
m_browserMW->LoadURL(mwurl);
@ -815,6 +816,7 @@ void WebViewPanel::SetMakerworldPageLoginStatus(bool login ,wxString ticket)
m_online_spec_id = "";
} else {
mw_currenturl = m_browserMW->GetCurrentURL();
mw_currenturl.Replace("modelid=", "");
}
//mw_currenturl.Replace("modelid=", "");