Skip to content

Commit 4b591de

Browse files
committed
propertly handle user cancel
1 parent ecd64f6 commit 4b591de

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
@@ -537,7 +537,7 @@ onboard_logging.initialize = function (callback) {
537537
nextAddress += self.blockSize; // Move to next block
538538
simpleRetryCount = 0; // reset counter for next block
539539

540-
if (nextAddress >= maxBytes) {
540+
if (saveCancelled || nextAddress >= maxBytes) {
541541
mark_saving_dialog_done(startTime, nextAddress, totalBytesCompressed);
542542
FileSystem.closeFile(openedFile);
543543
} else {

0 commit comments

Comments
 (0)