Merge pull request #97885 from timothyqiu/useful-tooltip
Make `EditorFileDialog`'s Recent and Fav list show full path in tooltip
This commit is contained in:
commit
f6279ffd56
1 changed files with 2 additions and 0 deletions
|
@ -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]));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue