mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-19 04:37:52 -06:00
FIX: web view log
Change-Id: I8e28d7b8f5cfbc95428a3768b32f312a591e41c1 (cherry picked from commit fe623cb52a449ff7dffb10c9de8d7af9c7651f1e)
This commit is contained in:
parent
1a8e5295b2
commit
cc1fb36a22
3 changed files with 5 additions and 2 deletions
|
@ -65,6 +65,7 @@ wxWebView* WebView::CreateWebView(wxWindow * parent, wxString const & url)
|
|||
url2.Replace("\\", "/");
|
||||
#endif
|
||||
if (!url2.empty()) { url2 = wxURI(url2).BuildURI(); }
|
||||
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << url2.ToUTF8();
|
||||
|
||||
auto webView = wxWebView::New();
|
||||
if (webView) {
|
||||
|
@ -93,6 +94,7 @@ wxWebView* WebView::CreateWebView(wxWindow * parent, wxString const & url)
|
|||
#endif
|
||||
webView->EnableContextMenu(false);
|
||||
} else {
|
||||
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << ": failed. Use fake web view.";
|
||||
webView = new FakeWebView;
|
||||
}
|
||||
return webView;
|
||||
|
@ -105,6 +107,7 @@ void WebView::LoadUrl(wxWebView * webView, wxString const &url)
|
|||
url2.Replace("\\", "/");
|
||||
#endif
|
||||
if (!url2.empty()) { url2 = wxURI(url2).BuildURI(); }
|
||||
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << url2.ToUTF8();
|
||||
webView->LoadURL(url2);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue