Files
photocraft/crates
Ivan Sanchez f137c271b7 Document tab menu: Close, Close Others and Reveal in Finder act on the clicked tab
Since the move to the craft UI framework, the document tab's right-click
menu sent the document's id as `document` to file.close,
file.closeOthers and file.revealInFinder, but those commands take the
document's index in the session's list. Ids come from a counter shared
with layers and other objects, so the command found no such document and
nothing happened. The menu now sends the tab's current index; Move to
New Window keeps the id it takes.

Test: three documents; the menu's Close on a tab that is not the active
one closes that document, then Close Others and Close run on the clicked
tab (fails before the change: "no active document").
2026-11-19 13:13:14 -08:00
..
2026-11-19 13:06:09 +01:00
…
…