1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 01:54:57 +00:00

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

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;