mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 03:00:46 +03:00
Fix unused capture
This commit is contained in:
parent
7560972cac
commit
865344c7aa
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ NotificationsManager::closeNotification(uint id)
|
||||||
"org.freedesktop.Notifications");
|
"org.freedesktop.Notifications");
|
||||||
auto call = closeCall.asyncCall("CloseNotification", (uint)id); // replace_id
|
auto call = closeCall.asyncCall("CloseNotification", (uint)id); // replace_id
|
||||||
auto watcher = new QDBusPendingCallWatcher{call, this};
|
auto watcher = new QDBusPendingCallWatcher{call, this};
|
||||||
connect(watcher, &QDBusPendingCallWatcher::finished, this, [watcher, this]() {
|
connect(watcher, &QDBusPendingCallWatcher::finished, this, [watcher]() {
|
||||||
if (watcher->reply().type() == QDBusMessage::ErrorMessage) {
|
if (watcher->reply().type() == QDBusMessage::ErrorMessage) {
|
||||||
qDebug() << "D-Bus Error:" << watcher->reply().errorMessage();
|
qDebug() << "D-Bus Error:" << watcher->reply().errorMessage();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue