Relax the requirements for a removal a bit. It's enough to have backups

This commit is contained in:
Maschell 2020-12-05 20:14:29 +01:00
parent 5e45460010
commit 7be164181d

View File

@ -338,10 +338,10 @@ void ApplicationState::checkColdbootStatus() {
void ApplicationState::checkRemovalPossible() {
DEBUG_FUNCTION_LINE("Check removal possible");
this->removalPossible = this->alreadyInstalled;
if (this->removalPossible) {
this->removalPossible &= this->systemXMLRestorePossible || !this->systemXMLAlreadyPatched;
}
// We can only restore if a restore of the system.xml is possible or it isn't patched at all.
this->removalPossible = !this->systemXMLAlreadyPatched || this->systemXMLRestorePossible;
// And we can only install if we have a backup.
if (this->removalPossible) {
this->removalPossible &= InstallerService::isBackupAvailable(this->appInfo->path);
}