mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
Settings: Bring back support for plugins (eg. Flash)
This commit is contained in:
parent
9cb66878ff
commit
637f38684d
@ -868,6 +868,7 @@ void MainApplication::loadSettings()
|
||||
settings.beginGroup("Web-Browser-Settings");
|
||||
|
||||
webSettings->setAttribute(QWebEngineSettings::LocalStorageEnabled, settings.value("HTML5StorageEnabled", true).toBool());
|
||||
webSettings->setAttribute(QWebEngineSettings::PluginsEnabled, settings.value("allowPlugins", true).toBool());
|
||||
webSettings->setAttribute(QWebEngineSettings::JavascriptEnabled, settings.value("allowJavaScript", true).toBool());
|
||||
webSettings->setAttribute(QWebEngineSettings::JavascriptCanOpenWindows, settings.value("allowJavaScriptOpenWindow", false).toBool());
|
||||
webSettings->setAttribute(QWebEngineSettings::JavascriptCanAccessClipboard, settings.value("allowJavaScriptAccessClipboard", true).toBool());
|
||||
|
@ -271,7 +271,7 @@ Preferences::Preferences(BrowserWindow* window)
|
||||
|
||||
// BROWSING
|
||||
settings.beginGroup("Web-Browser-Settings");
|
||||
ui->allowPlugins->setChecked(settings.value("allowFlash", true).toBool());
|
||||
ui->allowPlugins->setChecked(settings.value("allowPlugins", true).toBool());
|
||||
ui->allowJavaScript->setChecked(settings.value("allowJavaScript", true).toBool());
|
||||
ui->linksInFocusChain->setChecked(settings.value("IncludeLinkInFocusChain", false).toBool());
|
||||
ui->spatialNavigation->setChecked(settings.value("SpatialNavigation", false).toBool());
|
||||
@ -930,7 +930,7 @@ void Preferences::saveSettings()
|
||||
|
||||
//BROWSING
|
||||
settings.beginGroup("Web-Browser-Settings");
|
||||
settings.setValue("allowFlash", ui->allowPlugins->isChecked());
|
||||
settings.setValue("allowPlugins", ui->allowPlugins->isChecked());
|
||||
settings.setValue("allowJavaScript", ui->allowJavaScript->isChecked());
|
||||
settings.setValue("IncludeLinkInFocusChain", ui->linksInFocusChain->isChecked());
|
||||
settings.setValue("SpatialNavigation", ui->spatialNavigation->isChecked());
|
||||
|
Loading…
Reference in New Issue
Block a user