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:
@@ -330,6 +330,10 @@ HRESULT wxWebViewEdgeImpl::OnWebViewCreated(HRESULT result, ICoreWebView2Control
|
|||||||
m_pendingContextMenuEnabled = -1;
|
m_pendingContextMenuEnabled = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wxCOMPtr<ICoreWebView2Settings> settings(GetSettings());
|
||||||
|
if (settings)
|
||||||
|
settings->put_IsStatusBarEnabled(false);
|
||||||
|
|
||||||
if (!m_pendingURL.empty())
|
if (!m_pendingURL.empty())
|
||||||
{
|
{
|
||||||
m_ctrl->LoadURL(m_pendingURL);
|
m_ctrl->LoadURL(m_pendingURL);
|
||||||
|
Reference in New Issue
Block a user