98teg / NativeDialogs

Native Dialogs is a plugin for Godot that allows you to interact with OS-specific dialogs, such as notifications, messages and file dialogs.
MIT License
158 stars 8 forks source link

Dialog titles show garbled characters if filters are set #31

Closed madrxx closed 7 months ago

madrxx commented 7 months ago

Hi, I have two NativeFileDialogs as children of the root Control node in my project. Whether I have Mode Overrides Title selected or not, the dialog boxes sometimes show the file types in their title instead, or sometimes show garbled characters. This only occurs if I set filters on the dialog, either by using the Godot Inspector pane, or by using the .add_filter() method.

To reproduce: create a NativeFileDialog, put filters on it, call it with show(), close it with the mouse and then call .show() again. If it does not occur yet, close it again and open it again with show(). It occurs within 2-4 attempts consistently for me.

image image image image image

98teg commented 7 months ago

Please, check if this version of the plugin fixes the issue. I'm not sure about how the code change that I made fixes the issue, but it seems to be working for me.

native_dialogs.zip

madrxx commented 7 months ago

Working for me also, thanks.