Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 54871105 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

pk: Allow the user to repair the system after a faulty offline update

BUG: 401426
parent 6469e828
......@@ -128,6 +128,12 @@ void PackageKitNotifier::checkOfflineUpdates()
connect(notification, &KNotification::action1Activated, this, [] () {
connect(notification, &KNotification::action2Activated, this, [this] () {
auto trans = PackageKit::Daemon::global()->repairSystem();
connect(trans, &PackageKit::Transaction::errorCode, this, [](PackageKit::Transaction::Error /*error*/, const QString &details){
KNotification::event(QStringLiteral("offlineupdate-repair-failed"), i18n("Repair Failed"), i18n("Please report to your distribution: %1", details), {}, KNotification::Persistent, QStringLiteral("org.kde.discovernotifier"));
} else {
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