mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-30 02:07:10 +01:00
The menu model is rebuilt on every edit and selection change. For each dimmed row, shown_state asked why_off whether the command could run, and off_reason asked it again for the row's reason. For a row whose check gives no reason, off_reason also called palette::refusal, which asked why_off a third time and ran the engine check, then dropped the answer for every row but window.panel. With 10,000 objects selected, many of these checks walk the selection and take 1.5 to 7 ms each. shown_state_with takes the why_off answer, and the tree's rows and the catalog's rows pass it on to the reason. palette::refusal runs only for window.panel rows.