summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/TrayIcon.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/TrayIcon.cpp b/src/TrayIcon.cpp

index c62fecea..44bfb6ca 100644 --- a/src/TrayIcon.cpp +++ b/src/TrayIcon.cpp
@@ -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"