mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 02:40:49 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user