mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Merge pull request #110524 from paul-marechal/filedialog-windows-fix
Fix file_dialog's root_subfolder on Windows
This commit is contained in:
commit
3cc90cd925
1 changed files with 1 additions and 1 deletions
|
|
@ -1573,7 +1573,7 @@ void FileDialog::_change_dir(const String &p_new_dir) {
|
|||
} else {
|
||||
String old_dir = dir_access->get_current_dir();
|
||||
dir_access->change_dir(p_new_dir);
|
||||
if (!dir_access->get_current_dir(false).begins_with(root_prefix)) {
|
||||
if (!dir_access->get_current_dir().begins_with(root_prefix)) {
|
||||
dir_access->change_dir(old_dir);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue