Skip to content
Snippets Groups Projects
Unverified Commit f13543c2 authored by Klemens Nanni's avatar Klemens Nanni
Browse files

fix build/clear notifications on exit on OpenBSD

CMake builds ManagerLinux.cpp on `!MAC && !WIN`, that is BSD and Linux.
Fix the Linux-only assumption in the shared header.

Qt's `Q_OS_UNIX` is defined on Linux, BSDs and macOS alike.
parent 532ab1a0
No related branches found
No related tags found
No related merge requests found
...@@ -1661,7 +1661,7 @@ ChatPage::isRoomActive(const QString &room_id) ...@@ -1661,7 +1661,7 @@ ChatPage::isRoomActive(const QString &room_id)
void void
ChatPage::removeAllNotifications() ChatPage::removeAllNotifications()
{ {
#if defined(Q_OS_LINUX) #if defined(Q_OS_UNIX) && !defined(Q_OS_MACOS)
notificationsManager->closeAllNotifications(); notificationsManager->closeAllNotifications();
#endif #endif
} }
...@@ -53,7 +53,7 @@ public slots: ...@@ -53,7 +53,7 @@ public slots:
#if defined(NHEKO_DBUS_SYS) #if defined(NHEKO_DBUS_SYS)
public: public:
void closeNotifications(QString roomId); void closeNotifications(QString roomId);
#if defined(Q_OS_LINUX) #if defined(Q_OS_UNIX) && !defined(Q_OS_MACOS)
void closeAllNotifications(); void closeAllNotifications();
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment