You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Improve UX of drive letters
Namely, move the drive dropdown to just the left of the path text box and don't include the former in the latter. This improves the UX on Windows. In the UNIX case, since its concept of drives is (ab)used to provide shortcuts to useful paths, its dropdown is kept at the original location.
This commit is contained in:
committed by
Pedro J. Estébanez
parent
3c7d92c590
commit
aee586553a
@@ -269,6 +269,11 @@ String DirAccessUnix::get_drive(int p_drive) {
|
||||
return list[p_drive];
|
||||
}
|
||||
|
||||
bool DirAccessUnix::drives_are_shortcuts() {
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Error DirAccessUnix::make_dir(String p_dir) {
|
||||
|
||||
GLOBAL_LOCK_FUNCTION
|
||||
@@ -337,7 +342,7 @@ Error DirAccessUnix::change_dir(String p_dir) {
|
||||
return OK;
|
||||
}
|
||||
|
||||
String DirAccessUnix::get_current_dir() {
|
||||
String DirAccessUnix::get_current_dir(bool p_include_drive) {
|
||||
|
||||
String base = _get_root_path();
|
||||
if (base != "") {
|
||||
|
||||
Reference in New Issue
Block a user