diff --git a/src/TrayIcon.cpp b/src/TrayIcon.cpp index c62fecea..776140f2 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%1 unread message(s)").arg(count)); + } + + setToolTip(toolTip); } #include "moc_TrayIcon.cpp"