summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-06-04 03:32:21 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2023-06-08 22:32:13 +0200
commit5f20f94e32a986d5a79a3dfd7038db378e92f5a7 (patch)
tree16dd102a80eb08dde894b94b97305a94e4c5891e
parentRemove QtMac header (diff)
downloadnheko-5f20f94e32a986d5a79a3dfd7038db378e92f5a7.tar.xz
Use Badge function on non-dbus systems
-rw-r--r--src/dock/Dock.cpp5
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