mirror of
https://github.com/storytold/gridcraft.git
synced 2026-10-31 14:17:12 -06:00
Engine: a recorded script run keeps the steps that ran
The recorder expanded an automate.runScript step from the workbook as it stood when the recording stopped, so a script edited or deleted during the recording changed the saved macro, or dropped the step. The run now leaves the steps it ran with the recorder (Recorder::ran, by step index, within the byte budget), and the conversion reads those, falling back to the workbook only when they could not be kept.
This commit is contained in:
+2
-1
@@ -155,7 +155,8 @@ inferred. Toggles such as Bold are recorded with the state they set (`"on": true
|
||||
them back sets them rather than flipping them. Commands a macro may not run are left out and
|
||||
listed in the result, also from the steps of a macro or script run while recording; a macro run
|
||||
while recording is replaced by its steps when it has no inputs, no output and only plain commands
|
||||
(otherwise it is left out and listed), and an Automate script run by the script's steps.
|
||||
(otherwise it is left out and listed), and an Automate script run by the steps it ran, kept when
|
||||
it ran: editing or deleting the script before the recording stops changes nothing.
|
||||
|
||||
## Other commands and storage
|
||||
|
||||
|
||||
Reference in New Issue
Block a user