Commit e89e4fb6 authored by Laurent Montel's avatar Laurent Montel 😁

Updarte it if number was changed

parent e8023457
......@@ -58,10 +58,12 @@ TrayIcon::~TrayIcon()
void TrayIcon::slotSetUnread(int unread)
{
m_unread = unread;
if (m_unread != unread) {
m_unread = unread;
this->setToolTip(QStringLiteral("akregator"), i18n("Akregator"), unread == 0 ? i18n("There are no unread articles") : i18np("1 unread article", "%1 unread articles", unread));
setStatus(unread > 0 ? KStatusNotifierItem::Active : KStatusNotifierItem::Passive);
this->setToolTip(QStringLiteral("akregator"), i18n("Akregator"), unread == 0 ? i18n("There are no unread articles") : i18np("1 unread article", "%1 unread articles", unread));
setStatus(unread > 0 ? KStatusNotifierItem::Active : KStatusNotifierItem::Passive);
}
}
void TrayIcon::settingsChanged()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment