Commit cc7d0cd7 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

fwupd: request the user to reboot if an device update needs it

parent 44f1ab34
......@@ -8,6 +8,7 @@
#include "FwupdTransaction.h"
#include <QTimer>
#include <resources/AbstractBackendUpdater.h>
FwupdTransaction::FwupdTransaction(FwupdResource *app, FwupdBackend *backend)
: Transaction(backend, app, Transaction::InstallRole, {})
......@@ -116,6 +117,9 @@ void FwupdTransaction::finishTransaction()
break;
}
m_app->setState(newState);
if (m_app->needsReboot()) {
m_app->backend()->backendUpdater()->enableNeedsReboot();
}
setStatus(DoneStatus);
deleteLater();
}
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