MacOS window close (#539)

* MacOS window close

The red close button was aborting inside AppKit. The close button now cancels that in-loop window drop, saves preferences, and quits on the next turn of the main queue the same way Command-Q does.

* Review fixes for #539: remove the control key file before the macOS quit

Merge main. The new close path quits through terminate:/exit, which skips
on_exit, so it now removes the control key file as on_exit does (prefs were
already saved). Clippy-checked for aarch64-apple-darwin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Brandon Thomas <echelon@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Wayne Sun
2026-10-12 02:05:32 -04:00
committed by GitHub
co-authored by Claude Opus 5.5 Brandon Thomas
parent 520bc2863e
commit 95abff4205
3 changed files with 53 additions and 4 deletions
Generated
+3
View File
@@ -5001,11 +5001,14 @@ name = "wordcraft"
version = "0.5.0"
dependencies = [
"arboard",
"dispatch2",
"eframe",
"egui",
"fmv-macos-events",
"getrandom 0.3.4",
"log",
"objc2 0.6.5",
"objc2-app-kit 0.3.2",
"open",
"pollster 0.4.0",
"rfd",