diff options
| author | Dmitry Koteroff <vortex@verona.im> | 2017-11-21 02:58:07 +0300 |
|---|---|---|
| committer | Dmitry Koteroff <vortex@verona.im> | 2017-11-21 05:32:44 +0300 |
| commit | 20bda9a2badc4545cf061a1b4da32328b4caff15 (patch) | |
| tree | 0296f00e46408fd6f1c7d2b83f8fcb2ddb2e61a5 /editor | |
| parent | fb801d4964fae52e3807e28f2cc5fcd940ce1700 (diff) | |
| download | redot-engine-20bda9a2badc4545cf061a1b4da32328b4caff15.tar.gz | |
Remove the "." from file manage dialog (open scene, open file, ...)
Also removed the "." from game control's FileDialog component.
Also remove the "/" at the end of folders name.
Diffstat (limited to 'editor')
| -rw-r--r-- | editor/editor_file_dialog.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/editor/editor_file_dialog.cpp b/editor/editor_file_dialog.cpp index a0ca9b88e0..f8b9425a4e 100644 --- a/editor/editor_file_dialog.cpp +++ b/editor/editor_file_dialog.cpp @@ -541,6 +541,9 @@ void EditorFileDialog::update_file_list() { while ((item = dir_access->get_next(&isdir)) != "") { + if (item == ".") + continue; + ishidden = dir_access->current_is_hidden(); if (show_hidden || !ishidden) { @@ -562,7 +565,7 @@ void EditorFileDialog::update_file_list() { while (!dirs.empty()) { const String &dir_name = dirs.front()->get(); - item_list->add_item(dir_name + "/"); + item_list->add_item(dir_name); if (display_mode == DISPLAY_THUMBNAILS) { |
