Merge branch 'webview_edge_improvements2' of https://github.com/TcT2k/wxWidgets

Disable status bar in Edge-based webview for consistency with the other
backends.

See https://github.com/wxWidgets/wxWidgets/pull/2147
This commit is contained in:
Vadim Zeitlin
2020-12-29 16:23:32 +01:00

View File

@@ -330,6 +330,10 @@ HRESULT wxWebViewEdgeImpl::OnWebViewCreated(HRESULT result, ICoreWebView2Control
m_pendingContextMenuEnabled = -1;
}
wxCOMPtr<ICoreWebView2Settings> settings(GetSettings());
if (settings)
settings->put_IsStatusBarEnabled(false);
if (!m_pendingURL.empty())
{
m_ctrl->LoadURL(m_pendingURL);