mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Merge pull request #372 from bebehei/notification
Improvements to Linux notification manager
This commit is contained in:
commit
96a2c614bf
1 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ NotificationsManager::showNotification(const QString summary,
|
|||
const QImage image)
|
||||
{
|
||||
QVariantMap hints;
|
||||
hints["image_data"] = image;
|
||||
hints["image-data"] = image;
|
||||
QList<QVariant> argumentList;
|
||||
argumentList << "nheko"; // app_name
|
||||
argumentList << (uint)0; // replace_id
|
||||
|
@ -62,7 +62,7 @@ NotificationsManager::showNotification(const QString summary,
|
|||
argumentList << text; // body
|
||||
argumentList << (QStringList("default") << "reply"); // actions
|
||||
argumentList << hints; // hints
|
||||
argumentList << (int)0; // timeout in ms
|
||||
argumentList << (int)-1; // timeout in ms
|
||||
|
||||
static QDBusInterface notifyApp("org.freedesktop.Notifications",
|
||||
"/org/freedesktop/Notifications",
|
||||
|
|
Loading…
Reference in a new issue