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

NativeFileDialog - setting root subfolder to anything other than '/', '.', and '\' from editor returns an error #27

Closed Pandji25 closed 10 months ago

Pandji25 commented 11 months ago

Every time I type something on the root_subfolder property in the editor, it returns this error:

E 0:00:01:0799   godot::NativeFileDialog::set_root_subfolder: root_subfolder must be an existing sub-directory.
  <C++ Error>    Condition "!DirAccess::dir_exists_absolute(get_root_string() + p_root)" is true.
  <C++ Source>   src\native_file_dialog.cpp:218 @ godot::NativeFileDialog::set_root_subfolder()

I can only type '/', '.', and '\'.

However, setting the root_subfolder in the _ready() function works just fine.

I am using Godot 4.1.2