diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-12-05 14:19:19 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-12-05 14:19:19 -0300 |
commit | 3ecc9e07b7650725c8786d6af7c5f77ab6d94cc2 (patch) | |
tree | a2bfb03c229f76f9c1c255060702e221bc541e4a /scene/gui/file_dialog.cpp | |
parent | 200b7bb87c3d8d8b2011b08ed4bd7b034ceb452f (diff) | |
parent | 98c54827ae4696b0d9a4c56a2879ac294a79fe11 (diff) |
Merge branch 'master' of https://github.com/godotengine/godot
Diffstat (limited to 'scene/gui/file_dialog.cpp')
-rw-r--r-- | scene/gui/file_dialog.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scene/gui/file_dialog.cpp b/scene/gui/file_dialog.cpp index 8e428fd71c..75a1cb92ee 100644 --- a/scene/gui/file_dialog.cpp +++ b/scene/gui/file_dialog.cpp @@ -46,6 +46,11 @@ VBoxContainer *FileDialog::get_vbox() { } void FileDialog::_notification(int p_what) { + + if (p_what==NOTIFICATION_ENTER_TREE) { + + refresh->set_icon(get_icon("Reload","EditorIcons")); + } if (p_what==NOTIFICATION_DRAW) { @@ -700,6 +705,10 @@ FileDialog::FileDialog() { pathhb->add_child(dir); dir->set_h_size_flags(SIZE_EXPAND_FILL); + refresh = memnew( ToolButton ); + refresh->connect("pressed",this,"_update_file_list"); + pathhb->add_child(refresh); + drives = memnew( OptionButton ); pathhb->add_child(drives); drives->connect("item_selected",this,"_select_drive"); |