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
commita6f53699f5116caeabfdb599c864769aed18e8c4 (patch)
treec68c8ba60a54f182bd7d57acd7cabf4226b3ed8a /src/main.cpp
parentContinue fetching past messages when searching (diff)
parentAdd ability to respond to notifications on macOS (diff)
downloadnheko-a6f53699f5116caeabfdb599c864769aed18e8c4.tar.xz
Merge branch 'macos_notification_actions' into 'master'
Add ability to respond to notifications on macOS

See merge request nheko-reborn/nheko!21
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);