summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel J. Ramirez <djrmuv@gmail.com>2017-10-04 14:46:58 -0500
committerDaniel J. Ramirez <djrmuv@gmail.com>2017-10-04 14:46:58 -0500
commit670564f98e00d25ac6130b01742b28b4edef77f3 (patch)
treefcd115ccaa4175a471eab3afc5ba20d879f9ef0d
parenta848fa6cdeb00f0c40f259cde2d59112272e3c51 (diff)
Match file dialog drive with the current folder.
-rw-r--r--scene/gui/file_dialog.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/file_dialog.cpp b/scene/gui/file_dialog.cpp
index 87a232e766..320dad9301 100644
--- a/scene/gui/file_dialog.cpp
+++ b/scene/gui/file_dialog.cpp
@@ -115,6 +115,7 @@ Vector<String> FileDialog::get_selected_files() const {
void FileDialog::update_dir() {
dir->set_text(dir_access->get_current_dir());
+ drives->select(dir_access->get_current_drive());
}
void FileDialog::_dir_entered(String p_dir) {