fix: protect the dirty flag with an atomic.Bool

SetDirty runs on a Wails call goroutine while the GTK close handler
reads the flag, with no synchronisation: an edit landing while a save
finished could make the close confirmation unreliable. The spellMu
comment already documents the goroutine-per-call convention; the flag
that guards against losing work deserves the same care.
This commit is contained in:
Kharec committed 2026-10-15 17:43:56 +02:00
1 parent 643adffb12
commit c0a52a9040
2 files changed
+13 -4

No files matched your search

+5
View File
@@ -7,6 +7,11 @@ version is in the `VERSION` file.
## [Unreleased]
### Fixed
- The unsaved-changes marker is now updated atomically: an edit landing while a save
finished could make the close confirmation unreliable.
## [1.4] - 2026-10-15
### Fixed