HP-GL Options: OK writes nothing after another document became active

HP-GL Options stored no document, so OK after `window.nextDocument` or
`file.new` exported the newly active document to the path chosen for
the first one. The dialog now keeps the uid of the document it was
opened for, and OK closes it and writes nothing when another document
is active, as Delete Brush's dialog does.
This commit is contained in:
dotCooCoo
2026-11-19 07:49:59 -08:00
parent 4170a620a2
commit 9f95dc70dc
6 changed files with 36 additions and 6 deletions
+2 -1
View File
@@ -925,7 +925,8 @@ when the export refuses the options or the artboard choice, `pens` stays null an
remembers the options for the next HP-GL Options (not `exportSelection`) and writes the `.plt` file(s), asking for a
path when there is none (one per artboard with Use Artboards). A canceled save dialog writes nothing and keeps the
options remembered before; a save dialog shown in line (not as a sheet or off the UI thread) also keeps HP-GL
Options open.
Options open. When another document has become the active one since the dialog opened, `ui.dialog.confirm` closes
it and writes nothing.
TIFF, BMP and Targa Options: Export As… with the TIFF, BMP or Targa format (`file.exportAs {format: "tiff"}`, then
the save dialog) opens `tiffOptions`, `bmpOptions` or `tgaOptions`: the raster rows of PNG Options (`ppi`,