mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-27 17:51:59 +01:00
Photoshop's Window menu ends with the open documents; PhotoCraft's had no list in either menu bar (#1264 got the tab overflow menu only). Window now ends with a separator and one row per document in tab order, labelled with its name and checked when active; choosing one brings it forward. The ids are window.document.<index>, so the rows also work over ui.menu.invoke. - In-window menu bar: the rows come from menus::menu_items, after Window's last item. Names are shown as they are, never translated. - macOS menu bar: the rows follow Bring All to Front, where a Mac app lists its windows. Opening or closing a document rebuilds only the Window menu: AppKit adds its own items there (window tiling, the window list), so muda can't insert rows by position, and the other menus stay as they are. Switching documents moves the check in place. The menu state hash now includes the documents' names, so a Save As rename shows up. Tested in a Tart guest with three generated files (.psd, .png, .tif) in both menu bars: on main neither lists them; with this change both do, and choosing a row switches the document and moves the check. Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>