mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 01:53:27 +03:00
Merge pull request #2486 from nextcloud/fix-notification
Connect signal guiLog to slot to display systray message.
This commit is contained in:
commit
1b1975e01d
2 changed files with 5 additions and 2 deletions
|
@ -92,7 +92,7 @@ void ServerNotificationHandler::slotNotificationsReceived(const QJsonDocument &j
|
|||
auto json = element.toObject();
|
||||
a._type = Activity::NotificationType;
|
||||
a._accName = ai->account()->displayName();
|
||||
a._id = json.value("activity_id").toInt();
|
||||
a._id = json.value("notification_id").toInt();
|
||||
|
||||
//need to know, specially for remote_share
|
||||
a._objectType = json.value("object_type").toString();
|
||||
|
@ -148,4 +148,4 @@ void ServerNotificationHandler::slotNotificationsReceived(const QJsonDocument &j
|
|||
|
||||
deleteLater();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#include "ocsjob.h"
|
||||
#include "configfile.h"
|
||||
#include "notificationconfirmjob.h"
|
||||
#include "logger.h"
|
||||
|
||||
#include <QDesktopServices>
|
||||
#include <QIcon>
|
||||
|
@ -45,6 +46,8 @@ User::User(AccountStatePtr &account, const bool &isCurrent, QObject *parent)
|
|||
connect(_account->account().data(), &Account::accountChangedDisplayName, this, &User::nameChanged);
|
||||
|
||||
connect(FolderMan::instance(), &FolderMan::folderListChanged, this, &User::hasLocalFolderChanged);
|
||||
|
||||
connect(this, &User::guiLog, Logger::instance(), &Logger::guiLog);
|
||||
}
|
||||
|
||||
void User::slotBuildNotificationDisplay(const ActivityList &list)
|
||||
|
|
Loading…
Reference in a new issue