mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 03:18:49 +03:00
Merge pull request #1774 from Integral-Tech/add-trayicon-tooltip
Add number of unread messages to tray icon toolTip
This commit is contained in:
commit
50f9edfe19
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%n unread message(s)", "", count));
|
||||
}
|
||||
|
||||
setToolTip(toolTip);
|
||||
}
|
||||
|
||||
#include "moc_TrayIcon.cpp"
|
||||
|
|
Loading…
Reference in a new issue