LibGUI: FileSystemModel should provide full paths to FileIconProvider

This will allow FileIconProvider to check additional things about
the specified path. (We previously only had access to the basename.)
This commit is contained in:
Andreas Kling 2020-09-18 18:17:15 +02:00
parent 8075db683b
commit fad6b8f267
Notes: sideshowbarker 2024-07-19 02:21:09 +09:00

View file

@ -484,7 +484,7 @@ Icon FileSystemModel::icon_for(const Node& node) const
return FileIconProvider::directory_open_icon();
}
return FileIconProvider::icon_for_path(node.name, node.mode);
return FileIconProvider::icon_for_path(node.full_path(), node.mode);
}
static HashMap<String, RefPtr<Gfx::Bitmap>> s_thumbnail_cache;