fix(favorites): refresh installed apps across origins

This commit is contained in:
2026-05-18 23:53:44 +08:00
parent 58789ecd1f
commit 3a8baf606c
4 changed files with 156 additions and 3 deletions
+3 -1
View File
@@ -19,7 +19,9 @@ const appMatchesFavorite = (app: App, item: FavoriteItem): boolean =>
const installedAppMatchesFavorite = (app: App, item: FavoriteItem): boolean =>
app.pkgname === item.pkgname &&
(app.category === item.category || app.category === "unknown");
(app.category === item.category ||
app.category === "all" ||
app.category === "unknown");
const appMatchesClientArch = (app: App, clientArch: string): boolean => {
if (!app.arch) return true;