Commit 375f88d
committed
Fix file_dialog's root_subfolder on Windows
`root_prefix` either contains an empty string or the current root
including the drive letter. This means that the previous logic would
never ever match since `dir_access->get_current_dir(false)` explicitly
excludes the drive letter.
This change removes this boolean parameter so we compare paths in a way
that can match.
I've had a look at the implementations for other platforms for
`DirAccess::get_current_dir(bool include_drive)` and outside Windows
none seem to consider the `include_drive` parameter which makes me
believe that this change won't break other platforms.1 parent 2b832e9 commit 375f88d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1448 | 1448 | | |
1449 | 1449 | | |
1450 | 1450 | | |
1451 | | - | |
| 1451 | + | |
1452 | 1452 | | |
1453 | 1453 | | |
1454 | 1454 | | |
| |||
0 commit comments