diff options
author | Clay John <claynjohn@gmail.com> | 2024-10-17 16:53:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-17 16:53:55 -0700 |
commit | f6279ffd56ae4e5abfaa4f08fd5717547e84a0d1 (patch) | |
tree | e49fcfe764b5cd55f04545c26e1afd5a9bd7be59 /editor/gui | |
parent | e50b864b642fdda40278b0b1967ca7c1e3af762c (diff) | |
parent | ecb56fca2646af72d90de2404c676398a56d505f (diff) | |
download | redot-engine-f6279ffd56ae4e5abfaa4f08fd5717547e84a0d1.tar.gz |
Merge pull request #97885 from timothyqiu/useful-tooltip
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.cpp | 2 |
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])); } |