Skip to content

Commit 9380578

Browse files
committed
Repeat check for not cancelled for consistency
1 parent bdd06e9 commit 9380578

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/tabs/onboard_logging.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ onboard_logging.initialize = function (callback) {
553553
// A zero-byte block indicates end-of-file, so we're done
554554
mark_saving_dialog_done(startTime, nextAddress, totalBytesCompressed);
555555
FileSystem.closeFile(openedFile);
556-
if (alsoErase) {
556+
if (!saveCancelled && alsoErase) {
557557
conditionallyEraseFlash(maxBytes, nextAddress);
558558
}
559559
}

0 commit comments

Comments
 (0)