From 5f20f94e32a986d5a79a3dfd7038db378e92f5a7 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sun, 4 Jun 2023 03:32:21 +0200 Subject: Use Badge function on non-dbus systems --- src/dock/Dock.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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 -- cgit 1.4.1