cogentcore / core

A free and open source framework for building powerful, fast, and elegant 2D and 3D apps that run on macOS, Windows, Linux, iOS, Android, and the Web with a single pure Go codebase, allowing you to Code Once, Run Everywhere.
http://cogentcore.org/core
BSD 3-Clause "New" or "Revised" License
1.33k stars 71 forks source link

Resolve window / app close prompt structure #833

Closed kkoreilly closed 4 months ago

kkoreilly commented 4 months ago

I implemented a much better structure for close prompts in the commits above, which allows you to call AddCloseDialog to easily add a customizable close prompt that works at the scene level. This makes close prompts much nicer, as you can see in the Cogent Code commit above.