From d5ec58c970b805aadd00477cebd874aadf3e8951 Mon Sep 17 00:00:00 2001 From: Max Paperno Date: Sun, 12 Nov 2023 00:12:47 -0500 Subject: [PATCH] [main] Fix that "Finalize Only" and "Render Only" choices were ignored in the "Generate Layered Icon" action and icon was always finalized and rendered. --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index e77d1db..e12fd14 100644 --- a/src/index.ts +++ b/src/index.ts @@ -328,9 +328,9 @@ async function handleIconAction(actionId: string, data: TpActionDataArrayType) let action = 3 // finalize | render if (data.length > 1) { - // Action choices: "Finalize & Render", "Finalize", "Render" + // Action choices: "Finalize & Render", "Finalize Only", "Render Only" let strVal:string = data[1].value.trim() - if (strVal.length < 9) + if (strVal.length < 17) action = strVal[0] == 'F' ? 1 : 2 parseState.pos = 2;