You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like pygame_gui.windows.UIFileDialog only distinguishes between files and directories, not between files with different extensions. Luckily, wm.py checks the format in set_bg_image before loading the image, so choosing a non-image file doesn't break anything.
A simple fix would be to move the images to a separate directory. That way, if the user really wants to select __init__.py, (a) they have to do so intentionally and (b) it still has no effect. More extensive changes could include displaying an error and/or reopening the file dialog if the file is not accepted, or perhaps modifying/subclassing UIFileDialog to add a file extension filter.
No description provided.
The text was updated successfully, but these errors were encountered: