mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 14:28: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:
parent
8075db683b
commit
fad6b8f267
Notes:
sideshowbarker
2024-07-19 02:21:09 +09:00
Author: https://github.com/awesomekling
Commit: fad6b8f267
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue