From 15b25e2c180b3a0b88b51e3603939e08f88ebd04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathis=20Dr=C3=B6ge?= Date: Mon, 25 Nov 2024 04:22:06 +0100 Subject: [PATCH] [Fix] Epic: Hide UE-related items from the user's library (#4133) Hide UE-related items from the user's library --- src/backend/storeManagers/legendary/library.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/backend/storeManagers/legendary/library.ts b/src/backend/storeManagers/legendary/library.ts index 6866ae63ff..7ca7aa1faf 100644 --- a/src/backend/storeManagers/legendary/library.ts +++ b/src/backend/storeManagers/legendary/library.ts @@ -510,7 +510,14 @@ function loadFile(app_name: string): boolean { } const { namespace } = metadata - if (namespace === 'ue') { + const ueCategories = ['assets', 'asset-format', 'plugins', 'projects'] + const isUeTitle = + namespace === 'ue' || + !!metadata.categories.find((category) => + ueCategories.includes(category.path) + ) + + if (isUeTitle) { return false }