Skip to content

fix(save): offer checksum correction when overwriting a file - #3

Open
mael-chouteau wants to merge 1 commit into
JeanLucPons:mainfrom
mael-chouteau:fix/checksum-correction-on-overwrite-save
Open

fix(save): offer checksum correction when overwriting a file#3
mael-chouteau wants to merge 1 commit into
JeanLucPons:mainfrom
mael-chouteau:fix/checksum-correction-on-overwrite-save

Conversation

@mael-chouteau

Copy link
Copy Markdown

Problem

When saving, ChecksumHelper.correct() was only offered if the output path did not already exist. Saving over an existing file asked for overwrite confirmation but never prompted for checksum correction, so the written file could still have stale MCS32 / RSA+MD5 / SCS32 values.

Change

Unify the save path: after optional overwrite approval, always offer the same "Do you want to correct the checksum?" dialog and call ChecksumHelper.correct(dump.memory) when the user chooses Yes.

Related

Closes #2 (issue describing this behavior).

Made with Cursor

Previously ChecksumHelper.correct() ran only for new save paths; saving
over an existing file skipped the checksum prompt entirely after the
overwrite confirmation.

Unify the flow: after optional overwrite approval, always prompt for
checksum correction before write.

Fixes JeanLucPons#2

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Save: checksum correction skipped when overwriting an existing file

1 participant