1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-25 02:04:23 +00:00

WebView2: Fix nullptr check

This should ensure that the status bar and error page settings work as
intended.
This commit is contained in:
reuk 2022-01-20 20:42:43 +00:00
parent 88853f7eda
commit 702bfdb2c0

View file

@ -609,7 +609,7 @@ private:
ComSmartPtr<ICoreWebView2Settings> settings;
webView->get_Settings (settings.resetAndGetPointerAddress());
if (settings == nullptr)
if (settings != nullptr)
{
settings->put_IsStatusBarEnabled (! preferences.getIsStatusBarDisabled());
settings->put_IsBuiltInErrorPageEnabled (! preferences.getIsBuiltInErrorPageDisabled());