Merge pull request #1774 from Integral-Tech/add-trayicon-tooltip

Add number of unread messages to tray icon toolTip
pull/1795/head
DeepBlueV7.X 4 months ago committed by GitHub
commit 50f9edfe19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 7
      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"

Loading…
Cancel
Save