Browse Source

Merge pull request #11840 from djrm/pr_fix_drive_selection

Match file dialog drive with the current folder.
Gilles Roudiere 8 years ago
parent
commit
b759d1416f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      scene/gui/file_dialog.cpp

+ 1 - 0
scene/gui/file_dialog.cpp

@@ -115,6 +115,7 @@ Vector<String> FileDialog::get_selected_files() const {
 void FileDialog::update_dir() {
 void FileDialog::update_dir() {
 
 
 	dir->set_text(dir_access->get_current_dir());
 	dir->set_text(dir_access->get_current_dir());
+	drives->select(dir_access->get_current_drive());
 }
 }
 
 
 void FileDialog::_dir_entered(String p_dir) {
 void FileDialog::_dir_entered(String p_dir) {