1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:47:35 +00:00

Assistant: Keep the set of providers in a Vector for easy iteration

This commit is contained in:
Andreas Kling 2021-07-03 20:46:33 +02:00
parent ee991fa4e0
commit e4199beccc
3 changed files with 19 additions and 26 deletions

View file

@ -120,6 +120,11 @@ Gfx::Bitmap const* FileResult::bitmap() const
return GUI::FileIconProvider::icon_for_path(title()).bitmap_for_size(16);
}
FileProvider::FileProvider()
{
build_filesystem_cache();
}
void FileProvider::query(const String& query, Function<void(NonnullRefPtrVector<Result>)> on_complete)
{
build_filesystem_cache();