Connect signal guiLog to slot to display systray message.
authorCamila <hello@camila.codes>
Tue, 29 Sep 2020 15:07:36 +0000 (17:07 +0200)
committerCamila <hello@camila.codes>
Tue, 29 Sep 2020 16:53:28 +0000 (18:53 +0200)
Signed-off-by: Camila <hello@camila.codes>
src/gui/tray/UserModel.cpp

index c0da8137b6109fc039e60a12b6fbaf9a4537ad72..6c6b5f49c72306bf7a11181d6bf0856d9e3598f2 100644 (file)
@@ -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)