From 887f8952f889535c9bcb88d5004a9fecd80f4271 Mon Sep 17 00:00:00 2001 From: Ariel Juodziukynas Date: Sat, 14 Dec 2024 22:15:10 -0300 Subject: [PATCH] Fix: Remove sideloaded games from recent list when uninstalled --- src/backend/storeManagers/sideload/games.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/storeManagers/sideload/games.ts b/src/backend/storeManagers/sideload/games.ts index ca256f71d8..1d065f4d49 100644 --- a/src/backend/storeManagers/sideload/games.ts +++ b/src/backend/storeManagers/sideload/games.ts @@ -23,6 +23,7 @@ import { notify } from '../../dialog/dialog' import { launchGame } from 'backend/storeManagers/storeManagerCommon/games' import { GOGCloudSavesLocation } from 'common/types/gog' import { InstallResult, RemoveArgs } from 'common/types/game_manager' +import { removeRecentGame } from 'backend/recent_games/recent_games' export function getGameInfo(appName: string): GameInfo { const store = libraryStore.get('games', []) @@ -128,6 +129,7 @@ export async function uninstall({ notify({ title, body: i18next.t('notify.uninstalled') }) removeShortcutsUtil(gameInfo) + removeRecentGame(appName) sendGameStatusUpdate({ appName,