Skip to content

Commit 3cc90cd

Browse files
committed
Merge pull request godotengine#110524 from paul-marechal/filedialog-windows-fix
Fix file_dialog's root_subfolder on Windows
2 parents 65beea6 + 375f88d commit 3cc90cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scene/gui/file_dialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1573,7 +1573,7 @@ void FileDialog::_change_dir(const String &p_new_dir) {
15731573
} else {
15741574
String old_dir = dir_access->get_current_dir();
15751575
dir_access->change_dir(p_new_dir);
1576-
if (!dir_access->get_current_dir(false).begins_with(root_prefix)) {
1576+
if (!dir_access->get_current_dir().begins_with(root_prefix)) {
15771577
dir_access->change_dir(old_dir);
15781578
return;
15791579
}

0 commit comments

Comments
 (0)