mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-05 18:20:39 +08:00
FIX: log WebView2Loader load failed
Change-Id: I859744d85d034b8c6b6de083aac7b5272c19b5d5 Jira: none
This commit is contained in:
parent
fe8b819a69
commit
23581ce0d3
@ -6,6 +6,7 @@
|
||||
|
||||
#include <wx/webviewarchivehandler.h>
|
||||
#include <wx/webviewfshandler.h>
|
||||
#include <wx/dynlib.h>
|
||||
#if wxUSE_WEBVIEW_EDGE
|
||||
#include <wx/msw/webview_edge.h>
|
||||
#elif defined(__WXMAC__)
|
||||
@ -64,6 +65,10 @@ public:
|
||||
}
|
||||
settings->Release();
|
||||
return false;
|
||||
} else {
|
||||
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << ": create web view failed.";
|
||||
wxDynamicLibrary loaderDll;
|
||||
loaderDll.Load("WebView2Loader.dll", wxDL_DEFAULT);
|
||||
}
|
||||
pendingUserAgent = userAgent;
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user