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:
parent
ed2bf0a753
commit
3ecd1d603f
3 changed files with 12 additions and 10 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue