ENH: Reset MWPage When LoginStatus Change
JIRA: none Change-Id: I145aa099e82f0d8a8052bd1d19d4e20d979027e9
This commit is contained in:
parent
cc75e97e4f
commit
a84374ed3a
|
@ -281,6 +281,7 @@ void WebViewPanel::ResetWholePage()
|
||||||
RunScript(strJS);
|
RunScript(strJS);
|
||||||
|
|
||||||
//online
|
//online
|
||||||
|
m_online_spec_id = "";
|
||||||
auto host = wxGetApp().get_model_http_url(wxGetApp().app_config->get_country_code());
|
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();
|
std::string mwurl = (boost::format("%1%studio/webview?from=bambustudio") % host).str();
|
||||||
m_browserMW->LoadURL(mwurl);
|
m_browserMW->LoadURL(mwurl);
|
||||||
|
@ -815,6 +816,7 @@ void WebViewPanel::SetMakerworldPageLoginStatus(bool login ,wxString ticket)
|
||||||
m_online_spec_id = "";
|
m_online_spec_id = "";
|
||||||
} else {
|
} else {
|
||||||
mw_currenturl = m_browserMW->GetCurrentURL();
|
mw_currenturl = m_browserMW->GetCurrentURL();
|
||||||
|
mw_currenturl.Replace("modelid=", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
//mw_currenturl.Replace("modelid=", "");
|
//mw_currenturl.Replace("modelid=", "");
|
||||||
|
|
Loading…
Reference in New Issue