FIX: log WebView2Loader load failed

Change-Id: I859744d85d034b8c6b6de083aac7b5272c19b5d5
Jira: none
This commit is contained in:
chunmao.guo 2024-09-13 09:26:47 +08:00 committed by Lane.Wei
parent fe8b819a69
commit 23581ce0d3

View File

@ -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;