mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
Plugins: Load KDE Frameworks Integration by default inside KDE session
This commit is contained in:
parent
fb95cc81d6
commit
ec1c2c8031
|
@ -84,9 +84,18 @@ void Plugins::unloadPlugin(Plugins::Plugin* plugin)
|
|||
|
||||
void Plugins::loadSettings()
|
||||
{
|
||||
QStringList defaultAllowedPlugins = {
|
||||
QSL("internal:adblock")
|
||||
};
|
||||
|
||||
// Enable KDE Frameworks Integration when running inside KDE session
|
||||
if (qgetenv("KDE_FULL_SESSION") == QByteArray("true")) {
|
||||
defaultAllowedPlugins.append(QSL("lib:KDEFrameworksIntegration.so"));
|
||||
}
|
||||
|
||||
Settings settings;
|
||||
settings.beginGroup("Plugin-Settings");
|
||||
m_allowedPlugins = settings.value("AllowedPlugins", QStringList(QSL("internal:adblock"))).toStringList();
|
||||
m_allowedPlugins = settings.value("AllowedPlugins", defaultAllowedPlugins).toStringList();
|
||||
settings.endGroup();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user