Skip to content

Keep previous layout file if saving fails - #41

Merged
sylvestre merged 1 commit into
opencollab:masterfrom
danilovesky:fix-layout-file-truncation
Nov 22, 2026
Merged

sylvestre merged 1 commit into
opencollab:masterfrom
danilovesky:fix-layout-file-truncation

Conversation

@danilovesky

Copy link
Copy Markdown
Contributor

FilePersistenceHandler.store emptied the layout file before writing it, so a failed save lost the previous layout. Write to a temporary file and replace the layout file only once the layout is complete.

Fixes #40

FilePersistenceHandler.store emptied the layout file before writing it,
so a failed save lost the previous layout. Write to a temporary file
and replace the layout file only once the layout is complete.

Fixes opencollab#40
@mergify

mergify Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

This pull request is merged.

@sylvestre
sylvestre merged commit c545075 into opencollab:master Nov 22, 2026
7 checks passed
@sylvestre

Copy link
Copy Markdown
Contributor

Thanks for your PR

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.

Failed layout save leaves an empty or partial layout file

2 participants