mirror of
https://github.com/storytold/gridcraft.git
synced 2026-10-24 18:56:59 -06:00
AccessKit's macOS adapter subclasses the window's content view and restores its class when the window is torn down; AppKit's Touch Bar support observes that view via KVO, so the next display cycle throws in -[_NSTouchBarFinderObservation invalidate] and the quit ends in a crash report. On macOS, on_exit now exits right after saving the preferences, before eframe drops the window (what eframe itself does without run_and_return). Same fix as storytold/vectorcraft#670. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>