mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-13 13:09:16 +00:00
Preferences: Reset Preferences leaves the open document's units alone
Reset Preferences put Points in Units > General, and OK sent it to prefs.set, which also set the open document's units as an undo step. OK after Reset now resets the General preference and leaves the document's units as they are. Choosing a General unit after Reset, in the dialog or with ui.dialog.set, still sets the document's units. prefs.set takes documentUnits (default true); false makes unitsGeneral set only the preference. Docs: params text, docs/mcp.md. Part of #6435
This commit is contained in:
+2
-1
@@ -4478,7 +4478,8 @@ four: General (rulers, positions and sizes, the Info panel, dialog distances, ca
|
||||
(weights, dashes), Type (font size, leading, baseline shift) and East Asian Type (no field uses it yet). General is the active document's units
|
||||
(`document.inspect` → `units`): `document.setUnits {units}` (Document Setup) sets it for that document, and
|
||||
`prefs.set {key: "unitsGeneral", value}` sets it for the active document too (one undo step) and is the units
|
||||
`file.new` starts in when it gets no `units`. Stroke, Type and East Asian Type are the preferences `unitsStroke`,
|
||||
`file.new` starts in when it gets no `units`. With `documentUnits: false`, `prefs.set` sets only the preference and
|
||||
leaves the document's units as they are; Reset Preferences followed by OK in the Preferences dialog does this. Stroke, Type and East Asian Type are the preferences `unitsStroke`,
|
||||
`unitsType` and `unitsAsianType`. Only `unitsAsianType` also takes `q` (Q, `Q`) and `ha` (Ha, `Ha`), each a quarter of
|
||||
a millimetre (0.709 pt); the other preferences, `document.setUnits` and the rulers do not list them, and it is Points
|
||||
by default. A length typed with a unit
|
||||
|
||||
Reference in New Issue
Block a user