summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorDmitry Koteroff <vortex@verona.im>2017-11-21 02:58:07 +0300
committerDmitry Koteroff <vortex@verona.im>2017-11-21 05:32:44 +0300
commit20bda9a2badc4545cf061a1b4da32328b4caff15 (patch)
tree0296f00e46408fd6f1c7d2b83f8fcb2ddb2e61a5 /scene/gui
parentfb801d4964fae52e3807e28f2cc5fcd940ce1700 (diff)
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 'scene/gui')
-rw-r--r--scene/gui/file_dialog.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/scene/gui/file_dialog.cpp b/scene/gui/file_dialog.cpp
index 6ade4fcc38..6aba535572 100644
--- a/scene/gui/file_dialog.cpp
+++ b/scene/gui/file_dialog.cpp
@@ -323,6 +323,9 @@ void FileDialog::update_file_list() {
while ((item = dir_access->get_next(&isdir)) != "") {
+ if (item == ".")
+ continue;
+
ishidden = dir_access->current_is_hidden();
if (show_hidden || !ishidden) {
@@ -344,7 +347,7 @@ void FileDialog::update_file_list() {
while (!dirs.empty()) {
String &dir_name = dirs.front()->get();
TreeItem *ti = tree->create_item(root);
- ti->set_text(0, dir_name + "/");
+ ti->set_text(0, dir_name);
ti->set_icon(0, folder);
Dictionary d;