mirror of
https://github.com/status-im/snorenotify.git
synced 2025-01-10 16:45:56 +00:00
Revert "create plugin cache per application to prevent clashes on stratup"
This reverts commit e4e1ab0cbf73d1556362943b6a8ff7f8f55d882b.
This commit is contained in:
parent
e4e1ab0cbf
commit
e61b9385d7
@ -28,6 +28,7 @@
|
|||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QMetaEnum>
|
#include <QMetaEnum>
|
||||||
|
#include <QApplication>
|
||||||
|
|
||||||
using namespace Snore;
|
using namespace Snore;
|
||||||
|
|
||||||
@ -144,7 +145,6 @@ void PluginContainer::updatePluginCache()
|
|||||||
cache().setValue("version",Version::revision());
|
cache().setValue("version",Version::revision());
|
||||||
cache().setValue("buildtime",Version::buildTime());
|
cache().setValue("buildtime",Version::buildTime());
|
||||||
cache().setValue("pluginPath",pluginDir().absolutePath());
|
cache().setValue("pluginPath",pluginDir().absolutePath());
|
||||||
cache().setValue("application", qApp->applicationFilePath());
|
|
||||||
QList<PluginContainer*> plugins = pluginCache(SnorePlugin::ALL).values();
|
QList<PluginContainer*> plugins = pluginCache(SnorePlugin::ALL).values();
|
||||||
cache().beginWriteArray("plugins");
|
cache().beginWriteArray("plugins");
|
||||||
for(int i=0;i< plugins.size();++i)
|
for(int i=0;i< plugins.size();++i)
|
||||||
|
@ -26,7 +26,6 @@
|
|||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#include <QFlag>
|
#include <QFlag>
|
||||||
#include <QPluginLoader>
|
#include <QPluginLoader>
|
||||||
#include <QApplication>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -73,7 +72,7 @@ private:
|
|||||||
if(_cache == NULL)
|
if(_cache == NULL)
|
||||||
{
|
{
|
||||||
_cache = new QSettings("SnoreNotify","libsnore");
|
_cache = new QSettings("SnoreNotify","libsnore");
|
||||||
_cache->beginGroup( SnoreCorePrivate::computeHash(pluginDir().absolutePath().append(qApp->applicationFilePath()).toLatin1()));
|
_cache->beginGroup( SnoreCorePrivate::computeHash(pluginDir().absolutePath().toLatin1()));
|
||||||
}
|
}
|
||||||
return *_cache;
|
return *_cache;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user