Skip to content

Commit

Permalink
Fix: Remove sideloaded games from recent list when uninstalled (#4178)
Browse files Browse the repository at this point in the history
  • Loading branch information
arielj authored Mar 1, 2025
1 parent 881ea95 commit a2be468
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/backend/storeManagers/sideload/games.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { launchGame } from 'backend/storeManagers/storeManagerCommon/games'
import { GOGCloudSavesLocation } from 'common/types/gog'
import { InstallResult, RemoveArgs } from 'common/types/game_manager'
import { removePrefix } from 'backend/utils/uninstaller'
import { removeRecentGame } from 'backend/recent_games/recent_games'

export function getGameInfo(appName: string): GameInfo {
const store = libraryStore.get('games', [])
Expand Down Expand Up @@ -124,6 +125,7 @@ export async function uninstall({
notify({ title, body: i18next.t('notify.uninstalled') })

removeShortcutsUtil(gameInfo)
removeRecentGame(appName)

sendGameStatusUpdate({
appName,
Expand Down

0 comments on commit a2be468

Please sign in to comment.