Merge pull request #26652 from YeldhamDev/filesys_dock_icon_fix

Fix FileSystem dock's item view button starting with the wrong icon
This commit is contained in:
Rémi Verschelde 2019-03-05 20:38:52 +01:00 committed by GitHub
commit c40877bc6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -350,7 +350,7 @@ void FileSystemDock::_notification(int p_what) {
button_toggle_display_mode->set_icon(get_icon("Panels2", ei));
button_hist_next->set_icon(get_icon("Forward", ei));
button_hist_prev->set_icon(get_icon("Back", ei));
if (file_list_display_mode == FILE_LIST_DISPLAY_THUMBNAILS) {
if (file_list_display_mode == FILE_LIST_DISPLAY_LIST) {
button_file_list_display_mode->set_icon(get_icon("FileThumbnail", "EditorIcons"));
} else {
button_file_list_display_mode->set_icon(get_icon("FileList", "EditorIcons"));