mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 12:38:48 +03:00
Use Badge function on non-dbus systems
This commit is contained in:
parent
4c71f6f23f
commit
5f20f94e32
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue