mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Use async call
This commit is contained in:
parent
70a4e1e265
commit
e2d89e093a
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ NotificationsManager::postNotification(const QString &roomid,
|
|||
"/org/freedesktop/Notifications",
|
||||
"org.freedesktop.Notifications");
|
||||
auto call =
|
||||
notifyApp.callWithArgumentList(QDBus::AutoDetect, "Notify", argumentList);
|
||||
notifyApp.asyncCallWithArgumentList("Notify", argumentList);
|
||||
QDBusPendingCallWatcher watcher{QDBusPendingReply{call}};
|
||||
connect(&watcher, &QDBusPendingCallWatcher::finished, this, [&watcher, this, &roomid, &eventid]() {
|
||||
if (watcher.reply().type() == QDBusMessage::ErrorMessage)
|
||||
|
|
Loading…
Reference in a new issue