mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-10-18 16:41:37 -04:00
Expand Spacing ran its search on the UI thread, so a complex layout froze the app for minutes with no way out. Run the search on a worker; when it lasts past 0.3 s, show a small modal window with elapsed time and Cancel. Cancel, Escape and the close box request cancellation through the Expander token and the window stays open until the worker stops, so the layout is never touched afterward. A cancelled run moves no part and reports it in the status bar instead of the "select two parts" notice.