BUGFIX: Proper default title for loaded RunningScripts (#557)

This commit is contained in:
David Walker 2023-06-01 03:42:55 -07:00 committed by GitHub
parent 4d1cdaad32
commit 0d6015104e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -163,6 +163,7 @@ export class RunningScript {
static fromJSON(value: IReviverValue): RunningScript { static fromJSON(value: IReviverValue): RunningScript {
const runningScript = Generic_fromJSON(RunningScript, value.data, includedProperties); const runningScript = Generic_fromJSON(RunningScript, value.data, includedProperties);
if (!runningScript.scriptKey) runningScript.scriptKey = scriptKey(runningScript.filename, runningScript.args); if (!runningScript.scriptKey) runningScript.scriptKey = scriptKey(runningScript.filename, runningScript.args);
if (!runningScript.title) runningScript.title = `${runningScript.filename} ${runningScript.args.join(" ")}`;
return runningScript; return runningScript;
} }
} }