diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp index 07406cc89d41a7324295ab1b1615c08fa03c02f7..374499801b7264e5d68bddb02b61557fcb920e81 100644 --- a/src/ChatPage.cpp +++ b/src/ChatPage.cpp @@ -1661,7 +1661,7 @@ ChatPage::isRoomActive(const QString &room_id) void ChatPage::removeAllNotifications() { -#if defined(Q_OS_LINUX) +#if defined(Q_OS_UNIX) && !defined(Q_OS_MACOS) notificationsManager->closeAllNotifications(); #endif } diff --git a/src/notifications/Manager.h b/src/notifications/Manager.h index ee37b3aa8e889532ca65caa3754be58c913c8740..129b5131e46afea3ccdca13e089d8b009038ccfa 100644 --- a/src/notifications/Manager.h +++ b/src/notifications/Manager.h @@ -53,7 +53,7 @@ public slots: #if defined(NHEKO_DBUS_SYS) public: void closeNotifications(QString roomId); -#if defined(Q_OS_LINUX) +#if defined(Q_OS_UNIX) && !defined(Q_OS_MACOS) void closeAllNotifications(); #endif