summary refs log tree commit diff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorJoe Donofry <rubberduckie3554@gmail.com>2022-11-04 16:42:09 +0000
committerJoe Donofry <rubberduckie3554@gmail.com>2022-11-04 16:42:09 +0000
commit07e8f64903a6d4c496c7eb53f95325c92a427286 (patch)
tree1ba12259465d119621055bcd256ac2ebf1d66574 /src/main.cpp
parentFix reactions matching displayname condition by accident (diff)
downloadnheko-07e8f64903a6d4c496c7eb53f95325c92a427286.tar.xz
Add ability to respond to notifications on macOS
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 3937c6b7..d1b4b769 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -33,6 +33,7 @@
 
 #if defined(Q_OS_MAC)
 #include "emoji/MacHelper.h"
+#include "notifications/Manager.h"
 #endif
 
 #if defined(GSTREAMER_AVAILABLE) && (defined(Q_OS_MAC) || defined(Q_OS_WINDOWS))
@@ -389,6 +390,10 @@ main(int argc, char *argv[])
     // Temporary solution for the emoji picker until
     // nheko has a proper menu bar with more functionality.
     MacHelper::initializeMenus();
+
+    // Need to set up notification delegate so users can respond to messages from within the
+    // notification itself.
+    NotificationsManager::attachToMacNotifCenter();
 #endif
 
     nhlog::ui()->info("starting nheko {}", nheko::version);