1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 09:42:10 +02:00

Enable plugins by default also in portable mode

AdBlock now needs plugins enabled to be loaded.
This commit is contained in:
David Rosca 2018-01-18 17:45:50 +01:00
parent f1a3b7643e
commit d5608d823b
2 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ void Plugins::loadSettings()
{
Settings settings;
settings.beginGroup("Plugin-Settings");
m_pluginsEnabled = settings.value("EnablePlugins", !mApp->isPortable()).toBool();
m_pluginsEnabled = settings.value("EnablePlugins", true).toBool();
m_allowedPlugins = settings.value("AllowedPlugins", QStringList()).toStringList();
settings.endGroup();

View File

@ -1,6 +1,6 @@
/* ============================================================
* Falkon - Qt web browser
* Copyright (C) 2010-2017 David Rosca <nowrep@gmail.com>
* Copyright (C) 2010-2018 David Rosca <nowrep@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -41,7 +41,7 @@ PluginsManager::PluginsManager(QWidget* parent)
//Application Extensions
Settings settings;
settings.beginGroup("Plugin-Settings");
bool appPluginsEnabled = settings.value("EnablePlugins", !mApp->isPortable()).toBool();
bool appPluginsEnabled = settings.value("EnablePlugins", true).toBool();
settings.endGroup();
ui->allowAppPlugins->setChecked(appPluginsEnabled);