Describe the bug
If you try to import a malformed or unsupported image file, Editor will display an error, but then will open "Import Sprite" dialog anyway. That dialog will be "importing" an image from a placeholder sprite 0 instead.
AGS Version
3.5.0, 3.5.1, current master (3.6.0).
To Reproduce
Find an unsuported image file, or simply create an empty file, and give it an extension expected by the Editor (.png, .bmp).
In AGS editor open sprite manager, do "Import new sprites from files" and select that bad file.
Observe error: "Unable to load image data from ". Click OK.
Observe "Import Sprite" dialog still opens, having a copy of sprite 0 in it.
Expected behavior
If error occured when trying to load an image file the Editor should not continue opening "Import Sprite" dialog.
Describe the bug If you try to import a malformed or unsupported image file, Editor will display an error, but then will open "Import Sprite" dialog anyway. That dialog will be "importing" an image from a placeholder sprite 0 instead.
AGS Version 3.5.0, 3.5.1, current master (3.6.0).
To Reproduce
Expected behavior If error occured when trying to load an image file the Editor should not continue opening "Import Sprite" dialog.