Commit a01c7813 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Notifier] Use resident notification

This way the "Show updates" button remains usable when the notification expired.

CCBUG: 407361
parent d375031f
...@@ -145,7 +145,6 @@ Comment[uk]=Доступні оновлення ...@@ -145,7 +145,6 @@ Comment[uk]=Доступні оновлення
Comment[x-test]=xxUpdates Availablexx Comment[x-test]=xxUpdates Availablexx
Comment[zh_CN]=可用更新 Comment[zh_CN]=可用更新
Comment[zh_TW]=有可用的更新 Comment[zh_TW]=有可用的更新
Urgency=Low
Action=Popup Action=Popup
[Event/OfflineUpdateSuccessful] [Event/OfflineUpdateSuccessful]
......
...@@ -90,6 +90,7 @@ void DiscoverNotifier::showUpdatesNotification() ...@@ -90,6 +90,7 @@ void DiscoverNotifier::showUpdatesNotification()
} }
m_updatesAvailableNotification = KNotification::event(QStringLiteral("Update"), message(), {}, iconName(), nullptr, KNotification::CloseOnTimeout, QStringLiteral("discoverabstractnotifier")); m_updatesAvailableNotification = KNotification::event(QStringLiteral("Update"), message(), {}, iconName(), nullptr, KNotification::CloseOnTimeout, QStringLiteral("discoverabstractnotifier"));
m_updatesAvailableNotification->setHint(QStringLiteral("resident"), true);
const QString name = i18n("View Updates"); const QString name = i18n("View Updates");
m_updatesAvailableNotification->setDefaultAction(name); m_updatesAvailableNotification->setDefaultAction(name);
m_updatesAvailableNotification->setActions({name}); m_updatesAvailableNotification->setActions({name});
......
Supports Markdown
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