Commit 15c1240f authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Add a button on the notification to open the updates

parent fad964d9
......@@ -66,7 +66,11 @@ void DiscoverNotifier::showUpdatesNotification()
return;
}
KNotification::event(QStringLiteral("Update"), message(), extendedMessage(), iconName(), nullptr, KNotification::CloseOnTimeout, QStringLiteral("discoverabstractnotifier"));
auto e = KNotification::event(QStringLiteral("Update"), message(), extendedMessage(), iconName(), nullptr, KNotification::CloseOnTimeout, QStringLiteral("discoverabstractnotifier"));
const QString name = i18n("Update");
e->setDefaultAction(name);
e->setActions({name});
connect(e, QOverload<unsigned int>::of(&KNotification::activated), this, &DiscoverNotifier::showMuon);
}
void DiscoverNotifier::updateStatusNotifier()
......
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