feature add bury point for local server and webview init.

This commit is contained in:
alves
2025-12-19 16:43:04 +08:00
parent 0e18f68f4c
commit 4728c6ce54
3 changed files with 24 additions and 3 deletions

View File

@@ -16,6 +16,7 @@
#include "wx/private/jsscriptwrapper.h"
#endif
#include "sentry_wrapper/SentryWrapper.hpp"
#ifdef __WIN32__
#include <WebView2.h>
#include <Shellapi.h>
@@ -312,7 +313,8 @@ wxWebView* WebView::CreateWebView(wxWindow * parent, wxString const & url)
#endif
webView->EnableContextMenu(true);
} else {
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << ": failed. Use fake web view.";
BOOST_LOG_TRIVIAL(fatal) << __FUNCTION__ << ": failed. Use fake web view.";
Slic3r::sentryReportLog(Slic3r::SENTRY_LOG_FATAL, "create webview fail and use fakewebview", BP_WEB_VIEW);
webView = new FakeWebView;
}
webView->SetRefData(new WebViewRef(webView));