// Set the spell check language.
webEngineProfilePointer->setSpellCheckLanguages({QStringLiteral("en_US")});
+ // Populate the zoom factor. This is necessary if a URL is being loaded, like a local URL, that does not trigger `applyDomainSettings()`.
+ privacyWebEngineViewPointer->setZoomFactor(Settings::zoomFactor());
+
// Move to the new tab.
tabWidgetPointer->setCurrentIndex(newTabIndex);
connect(f11ShortcutPointer, SIGNAL(activated()), fullScreenActionPointer, SLOT(trigger()));
connect(escapeShortcutPointer, SIGNAL(activated()), this, SLOT(escape()));
+ // Populate the UI.
+ // This must be done here, because otherwise, if a URL is loaded, like a local file, that does not trigger a call to TabWidget::applyDomainSettings, the UI will not be fully populated.
+ updateJavaScriptAction(Settings::javaScriptEnabled());
+ updateLocalStorageAction(Settings::localStorageEnabled());
+ updateDomStorageAction(Settings::domStorageEnabled());
+ updateUserAgentActions(UserAgentHelper::getUserAgentFromDatabaseName(Settings::userAgent()), true);
+ updateZoomFactorAction(Settings::zoomFactor());
+
// Load the initial website if this is the first window.
if (firstWindow)
tabWidgetPointer->loadInitialWebsite();
}
// Update the custom user agent enabled boolean.
+ // This is not done when the current user agent is a custom one but it is temporarially being changed via on-the-fly settings so that the user can switch back to the custom user agent.
if (updateCustomUserAgentStatus)
customUserAgentEnabled = customUserAgent;