mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Only register export click event once (#89)
This commit is contained in:
parent
6ec80cf410
commit
45016fbea1
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user