Use Badge function on non-dbus systems

This commit is contained in:
Nicolas Werner 2023-06-04 03:32:21 +02:00
parent 4c71f6f23f
commit 5f20f94e32
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -60,8 +60,6 @@ void
Dock::setUnreadCount(const int count) Dock::setUnreadCount(const int count)
{ {
unitySetNotificationCount(count); unitySetNotificationCount(count);
// qGuiApp->setBadgeNumber(count);
} }
void void
Dock::unitySetNotificationCount(const int count) Dock::unitySetNotificationCount(const int count)
@ -87,7 +85,8 @@ Dock::Dock(QObject *parent)
{ {
} }
void void
Dock::setUnreadCount(const int) Dock::setUnreadCount(const int count)
{ {
qGuiApp->setBadgeNumber(count);
} }
#endif #endif