mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 11:28:49 +03:00
Add number of unread messages to tray icon toolIip
This commit is contained in:
parent
0c222689f4
commit
01cc12fede
1 changed files with 7 additions and 0 deletions
|
@ -129,6 +129,13 @@ TrayIcon::setUnreadCount(int count)
|
|||
previousCount = count;
|
||||
}
|
||||
#endif
|
||||
|
||||
QString toolTip = QLatin1String("nheko");
|
||||
if (count > 0) {
|
||||
toolTip.append(tr("\n%1 unread message(s)").arg(count));
|
||||
}
|
||||
|
||||
setToolTip(toolTip);
|
||||
}
|
||||
|
||||
#include "moc_TrayIcon.cpp"
|
||||
|
|
Loading…
Reference in a new issue