diff options
| author | aaronp64 <aaronp.code@gmail.com> | 2024-05-02 13:05:53 -0400 |
|---|---|---|
| committer | aaronp64 <aaronp.code@gmail.com> | 2024-05-02 13:05:53 -0400 |
| commit | 831a085f67d5ab53d2778501e0849837d4495178 (patch) | |
| tree | 5ec895858e7841bf74006bd7d7bf0b93e5f9ec63 /modules/gdscript/gdscript_editor.cpp | |
| parent | 4e9543d8494f175bc0e772541a15c059bf6d6835 (diff) | |
| download | redot-engine-831a085f67d5ab53d2778501e0849837d4495178.tar.gz | |
Fix FileSystemDock thumbnails sometimes not displaying
There were (at least) three cases where thumbnails would not display, if they were generated while the FileSystemDock was not visible:
- current_path == "Favorites", due to p_path not starting with "Favorites"
- current_path == "res://", due to current_path having last "/" trimmed for comparison
- current_path pointing to a selected file instead of folder, since it no longer matches p_path's base directory
This change removes the current_path and is_visible_in_tree checks when determining whether to update the file's icon.
Fixes #90801
Fixes #91432
Diffstat (limited to 'modules/gdscript/gdscript_editor.cpp')
0 files changed, 0 insertions, 0 deletions
