feat: add 'transfer.complete' notification hint (#1374)

Described at https://developer.gnome.org/notification-spec/#categories ,
this is for a file transfer or download complete notification.
This commit is contained in:
Charles Kerr
2020-07-28 16:51:01 -05:00
committed by GitHub
parent 5be8bd50f9
commit 9da4abb003
3 changed files with 10 additions and 5 deletions

View File

@@ -601,7 +601,9 @@ bool Application::notifyApp(QString const& title, QString const& body) const
args.append(title); // summary
args.append(body); // body
args.append(QStringList()); // actions - unused for plain passive popups
args.append(QVariantMap()); // hints - unused atm
args.append(QVariantMap({
std::make_pair(QStringLiteral("category"), QVariant(QStringLiteral("transfer.complete")))
})); // hints
args.append(static_cast<int32_t>(-1)); // use the default timeout period
m.setArguments(args);
QDBusReply<quint32> const reply_msg = bus.call(m);