Browse Source

WebView2: Fix nullptr check

This should ensure that the status bar and error page settings work as
intended.
v6.1.6
reuk 3 years ago
parent
commit
702bfdb2c0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_gui_extra/native/juce_win32_WebBrowserComponent.cpp

+ 1
- 1
modules/juce_gui_extra/native/juce_win32_WebBrowserComponent.cpp 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());


Loading…
Cancel
Save