Skip to content

Commit

Permalink
Update GridStitchSetup.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewprivate authored Aug 28, 2024
1 parent 67a98e9 commit e9a7c44
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ui/GridStitchSetup.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -966,6 +966,7 @@ export class GridStitchSetup {

async generateGrid() {
if (this.makingGrid) {
this.needToRemakeGrid = true;
return;
}
this.makingGrid = true;
Expand All @@ -975,6 +976,11 @@ export class GridStitchSetup {
console.error(e);
}
this.makingGrid = false;

if (this.needToRemakeGrid) {
this.needToRemakeGrid = false;
this.generateGrid();
}
}

}
}

0 comments on commit e9a7c44

Please sign in to comment.