mirror of
https://github.com/status-im/snorenotify.git
synced 2025-02-10 07:26:22 +00:00
smll changes
This commit is contained in:
parent
87ed91c432
commit
03452acf12
@ -142,7 +142,7 @@ void PluginContainer::updatePluginCache(){
|
||||
qDebug() << "Failed loading plugin: " << filepath << loader.errorString();
|
||||
continue;
|
||||
}
|
||||
SnorePlugin *sp = dynamic_cast<SnorePlugin*>(plugin);
|
||||
SnorePlugin *sp = qobject_cast<SnorePlugin*>(plugin);
|
||||
if(sp == NULL){
|
||||
qDebug() << "Error:" << fileName << " is not a Snore plugin" ;
|
||||
plugin->deleteLater();
|
||||
@ -150,7 +150,7 @@ void PluginContainer::updatePluginCache(){
|
||||
}
|
||||
PluginContainer *info = new PluginContainer( SnoreCore::pluginDir().relativeFilePath(filepath),sp->name(),PluginContainer::typeFromString(type));
|
||||
s_pluginCache.insert(info->name(),info);
|
||||
delete sp;
|
||||
sp->deleteLater();
|
||||
qDebug() << "added" << info->name() << "to cache";
|
||||
}
|
||||
}
|
||||
|
@ -129,6 +129,7 @@ QStringList FreedesktopFrontend::GetCapabilities()
|
||||
{
|
||||
return QStringList()
|
||||
<< "body"
|
||||
<< "urgency"
|
||||
// << "body-hyperlinks"
|
||||
<< "body-markup"
|
||||
<< "icon-static"
|
||||
|
Loading…
x
Reference in New Issue
Block a user