Skip to content

Commit

Permalink
[main] Fix that "Finalize Only" and "Render Only" choices were ignore…
Browse files Browse the repository at this point in the history
…d in the "Generate Layered Icon" action and icon was always finalized and rendered.
  • Loading branch information
mpaperno committed Nov 12, 2023
1 parent ee62e20 commit d5ec58c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d5ec58c

Please sign in to comment.