diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-06-04 03:32:21 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-06-08 22:32:13 +0200 |
commit | 5f20f94e32a986d5a79a3dfd7038db378e92f5a7 (patch) | |
tree | 16dd102a80eb08dde894b94b97305a94e4c5891e | |
parent | Remove QtMac header (diff) | |
download | nheko-5f20f94e32a986d5a79a3dfd7038db378e92f5a7.tar.xz |
Use Badge function on non-dbus systems
-rw-r--r-- | src/dock/Dock.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/dock/Dock.cpp b/src/dock/Dock.cpp index 0b573c20..a4745e54 100644 --- a/src/dock/Dock.cpp +++ b/src/dock/Dock.cpp @@ -60,8 +60,6 @@ void Dock::setUnreadCount(const int count) { unitySetNotificationCount(count); - - // qGuiApp->setBadgeNumber(count); } void Dock::unitySetNotificationCount(const int count) @@ -87,7 +85,8 @@ Dock::Dock(QObject *parent) { } void -Dock::setUnreadCount(const int) +Dock::setUnreadCount(const int count) { + qGuiApp->setBadgeNumber(count); } #endif |