Only register export click event once (#89)

This commit is contained in:
Matthew Daly 2022-08-23 23:04:18 -04:00
parent 6ec80cf410
commit 45016fbea1

View File

@ -6,6 +6,7 @@ const FileManager = (() => {
Events.on('change', browseHolder, loadFile);
Events.on('change', browsePaletteHolder, loadPalette);
Events.on('click', 'export-confirm', exportProject);
function openSaveProjectWindow() {
//create name
@ -36,7 +37,6 @@ const FileManager = (() => {
}
Util.setValue('export-file-name', fileName);
Events.on("click", "export-confirm", exportProject);
Dialogue.showDialogue('export', false);
}