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

Assistant: Add subtitle field to the Result class

This allows providers to specify an appropriate subtitle instead of
making that something the UI layer has to figure out. :^)
This commit is contained in:
Andreas Kling 2021-06-29 13:22:35 +02:00
parent ed2bf0a753
commit 3ecd1d603f
3 changed files with 12 additions and 10 deletions

View file

@ -38,7 +38,7 @@ void AppProvider::query(String const& query, Function<void(Vector<NonnullRefPtr<
return;
auto icon = GUI::FileIconProvider::icon_for_executable(app_file->executable());
results.append(adopt_ref(*new AppResult(icon.bitmap_for_size(16), app_file->name(), app_file, match_result.score)));
results.append(adopt_ref(*new AppResult(icon.bitmap_for_size(16), app_file->name(), {}, app_file, match_result.score)));
});
on_complete(results);