Files
vectorcraft/crates
dotCooCoo 78472e947f Menus: a dimmed row runs its command's check once per rebuild
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.
2026-11-28 18:16:30 -08:00
..
2026-11-28 08:54:16 -08:00
2026-11-27 19:12:32 -08:00