mirror of
https://github.com/status-im/snorenotify.git
synced 2025-02-17 10:56:25 +00:00
use revision again to identify the cache
This commit is contained in:
parent
2d95122749
commit
091625d0ba
@ -119,7 +119,7 @@ void PluginContainer::updatePluginCache()
|
||||
if(sema.acquire())
|
||||
{
|
||||
cache().sync();
|
||||
if(cache().value("buildtime").toString() == Version::buildTime())
|
||||
if(cache().value("version").toString() == Version::revision())
|
||||
{
|
||||
sema.release();
|
||||
return;
|
||||
@ -181,8 +181,7 @@ const QHash<QString, PluginContainer *> PluginContainer::pluginCache(SnorePlugin
|
||||
{
|
||||
if(s_pluginCache.isEmpty())
|
||||
{
|
||||
QString buildTime = cache().value("buildtime").toString();
|
||||
if(buildTime != Version::buildTime())
|
||||
if(cache().value("version").toString() != Version::revision())
|
||||
{
|
||||
updatePluginCache();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user