mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
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").