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