mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-09-21 06:00:11 +08:00
fix(favorites): refresh installed apps across origins
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user