mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-29 17:55:45 +01:00
A menu title kept its held commands in a Vec, and commands::holds copied every command into a new Arc on each run of the title. MenuTitle keeps an Arc<[CommandRef]> and holds() shares it. Facts::of_last_pass cloned last pass's facts for every read; Facts::with_last_pass lends them to the reader instead, so the menu bar's is_open and is_focused answer without a copy.