mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Reset import image window on open
This commit is contained in:
parent
02806c7efa
commit
eb139ef8e7
@ -277,8 +277,14 @@ const FileManager = (() => {
|
||||
* to be made be the image is imported.
|
||||
*/
|
||||
function openImportImageWindow() {
|
||||
// Reset window values.
|
||||
importImageHolder.value = null;
|
||||
document.getElementById('import-image-match-size').checked = false;
|
||||
document.getElementById('import-image-name').innerText = "";
|
||||
|
||||
Events.on("click", "select-image", () => document.getElementById('import-image-browse-holder')?.click());
|
||||
Events.on("click", "import-image-confirm", importImage);
|
||||
|
||||
Dialogue.showDialogue('import-image', false);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user