summaryrefslogtreecommitdiffstats
path: root/editor/gui
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2024-10-06 21:32:31 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2024-10-06 21:32:31 +0800
commitecb56fca2646af72d90de2404c676398a56d505f (patch)
tree661239666ed800bb44c2c5b15607ea7de52bbe76 /editor/gui
parentdb66bd35af704fe0d83ba9348b8c50a48e51b2ba (diff)
downloadredot-engine-ecb56fca2646af72d90de2404c676398a56d505f.tar.gz
Make EditorFileDialog's Recent and Fav list show full path in tooltip
Diffstat (limited to 'editor/gui')
-rw-r--r--editor/gui/editor_file_dialog.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/gui/editor_file_dialog.cpp b/editor/gui/editor_file_dialog.cpp
index 77d0ba7a60..91b7810f77 100644
--- a/editor/gui/editor_file_dialog.cpp
+++ b/editor/gui/editor_file_dialog.cpp
@@ -1638,6 +1638,7 @@ void EditorFileDialog::_update_favorites() {
for (int i = 0; i < favorited_paths.size(); i++) {
favorites->add_item(favorited_names[i], theme_cache.folder);
+ favorites->set_item_tooltip(-1, favorited_paths[i]);
favorites->set_item_metadata(-1, favorited_paths[i]);
favorites->set_item_icon_modulate(-1, get_dir_icon_color(favorited_paths[i]));
@@ -1719,6 +1720,7 @@ void EditorFileDialog::_update_recent() {
for (int i = 0; i < recentd_paths.size(); i++) {
recent->add_item(recentd_names[i], theme_cache.folder);
+ recent->set_item_tooltip(-1, recentd_paths[i]);
recent->set_item_metadata(-1, recentd_paths[i]);
recent->set_item_icon_modulate(-1, get_dir_icon_color(recentd_paths[i]));
}