mirror of
https://github.com/status-im/snorenotify.git
synced 2025-01-10 00:25:43 +00:00
cleanup
This commit is contained in:
parent
e68b7672a6
commit
8529ea873e
@ -224,7 +224,7 @@ void PushoverFrontend::getMessages()
|
|||||||
if (!app.isValid()){
|
if (!app.isValid()){
|
||||||
Icon icon(QString("https://api.pushover.net/icons/%1.png").arg(notification.value("icon").toString()));
|
Icon icon(QString("https://api.pushover.net/icons/%1.png").arg(notification.value("icon").toString()));
|
||||||
app = Application(appName, icon);
|
app = Application(appName, icon);
|
||||||
app.addAlert(Alert("Default", icon));
|
app.addAlert(Alert(tr("Default"), icon));
|
||||||
SnoreCore::instance().registerApplication(app);
|
SnoreCore::instance().registerApplication(app);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -237,7 +237,7 @@ void PushoverFrontend::getMessages()
|
|||||||
app.icon(), Notification::defaultTimeout(), static_cast<Notification::Prioritys>(notification.value("priority").toInt()));
|
app.icon(), Notification::defaultTimeout(), static_cast<Notification::Prioritys>(notification.value("priority").toInt()));
|
||||||
if(n.priority() == Notification::EMERGENCY){
|
if(n.priority() == Notification::EMERGENCY){
|
||||||
n.hints().setValue("receipt", notification.value("receipt").toString());
|
n.hints().setValue("receipt", notification.value("receipt").toString());
|
||||||
n.hints().setValue("acked", notification.value("acked").toString());
|
n.hints().setValue("acked", notification.value("acked").toInt());
|
||||||
}
|
}
|
||||||
SnoreCore::instance().broadcastNotification(n);
|
SnoreCore::instance().broadcastNotification(n);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user