Init flag to prevent duplicate window events

This commit is contained in:
NSSure 2022-10-22 06:02:00 -04:00
parent 2e8f3f414b
commit 854a937da5

View File

@ -301,6 +301,8 @@ const FileManager = (() => {
Events.on("click", "select-image", () => document.getElementById('import-image-browse-holder')?.click()); Events.on("click", "select-image", () => document.getElementById('import-image-browse-holder')?.click());
Events.on("click", "import-image-confirm", importImage); Events.on("click", "import-image-confirm", importImage);
this.isImportWindowInitialized = true;
} }
Dialogue.showDialogue('import-image', false); Dialogue.showDialogue('import-image', false);