mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 10:17:34 +00:00
Assistant: Cache AppFile objects on AppProvider creation
This avoids unnecesarily recreating AppFiles on every query.
This commit is contained in:
parent
6ecff2ac28
commit
4d4ac769c1
2 changed files with 16 additions and 4 deletions
|
@ -141,7 +141,12 @@ public:
|
|||
|
||||
class AppProvider final : public Provider {
|
||||
public:
|
||||
AppProvider();
|
||||
|
||||
void query(DeprecatedString const& query, Function<void(Vector<NonnullRefPtr<Result>>)> on_complete) override;
|
||||
|
||||
private:
|
||||
Vector<NonnullRefPtr<Desktop::AppFile>> m_app_file_cache;
|
||||
};
|
||||
|
||||
class CalculatorProvider final : public Provider {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue