fix Windows build errors - wip

This commit is contained in:
SoftFever
2026-03-26 10:17:19 +08:00
parent 67fb0c8c83
commit fd47370c5c
3 changed files with 17 additions and 4 deletions

View File

@@ -329,7 +329,7 @@ wxWebView* WebView::CreateWebView(wxWindow * parent, wxString const & url)
bool WebView::CheckWebViewRuntime()
{
wxWebViewFactoryEdge factory;
auto wxVersion = factory.GetVersionInfo();
auto wxVersion = factory.GetVersionInfo(wxVersionContext::RunTime);
return wxVersion.GetMajor() != 0;
}