Skip to content

Commit

Permalink
feat(figma-plugin): Set again filename, preview icons when "currentpa…
Browse files Browse the repository at this point in the history
…gechange"
  • Loading branch information
junghyeonsu committed Oct 28, 2024
1 parent f8a7f67 commit 7594344
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions figma-plugin/plugin-src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,9 @@ async function setPreviewIcons() {
listenSetGithubUrl();
listenPngOption();
})();

// Listen for changes in the current page
figma.on("currentpagechange", () => {
sendFileName();
setPreviewIcons();
});

0 comments on commit 7594344

Please sign in to comment.