mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
commit
b4a7f34711
4 changed files with 5 additions and 3 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -97,6 +97,8 @@ public:
|
||||||
return "Nheko on Windows";
|
return "Nheko on Windows";
|
||||||
#elif defined(Q_OS_FREEBSD)
|
#elif defined(Q_OS_FREEBSD)
|
||||||
return "Nheko on FreeBSD";
|
return "Nheko on FreeBSD";
|
||||||
|
#elif defined(Q_OS_OPENBSD)
|
||||||
|
return "Nheko on OpenBSD";
|
||||||
#else
|
#else
|
||||||
return "Nheko";
|
return "Nheko";
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -159,7 +159,7 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
// this needs to be after setting the application name. Or how would we find our settings
|
// this needs to be after setting the application name. Or how would we find our settings
|
||||||
// file then?
|
// file then?
|
||||||
#if defined(Q_OS_LINUX) || defined(Q_OS_WIN) || defined(Q_OS_FREEBSD)
|
#if !defined(Q_OS_MACOS)
|
||||||
if (qgetenv("QT_SCALE_FACTOR").size() == 0) {
|
if (qgetenv("QT_SCALE_FACTOR").size() == 0) {
|
||||||
float factor = utils::scaleFactor();
|
float factor = utils::scaleFactor();
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue