Fix self-delete to run only after successful extraction (v1.1.1).
All checks were successful
Build NRO / build (push) Successful in 1m44s
All checks were successful
Build NRO / build (push) Successful in 1m44s
Only remove PatchExtractor.nro on exit when the Done screen was reached; early quit no longer deletes the NRO. Drop the ineffective mid-run self-delete.
This commit is contained in:
@@ -2,6 +2,14 @@
|
||||
|
||||
#include <cstdio>
|
||||
|
||||
namespace {
|
||||
bool g_deleteSelfOnExit = false;
|
||||
}
|
||||
|
||||
bool PatchActivity::shouldDeleteSelfOnExit() {
|
||||
return g_deleteSelfOnExit;
|
||||
}
|
||||
|
||||
PatchActivity::PatchActivity() {
|
||||
extractor = std::make_unique<PatchExtractor>();
|
||||
|
||||
@@ -128,6 +136,7 @@ void PatchActivity::showScreen(Screen screen) {
|
||||
break;
|
||||
|
||||
case Screen::Done: {
|
||||
g_deleteSelfOnExit = true;
|
||||
titleLabel->setText("Fertig");
|
||||
const unsigned long ok = extractor->getExtracted() - extractor->getSkipped();
|
||||
char msg[128];
|
||||
|
||||
Reference in New Issue
Block a user