Fix removal of games when they are deleted from file system

This commit is contained in:
grimsi
2025-06-09 22:18:45 +02:00
parent 2717c4deda
commit 210a50f76c
@@ -206,7 +206,7 @@ class LibraryService(
library.unmatchedPaths.addAll(newUnmatchedPaths)
// 1.3 Remove deleted games from the library
val removedGames = gameService.getAllByPaths(removedGamePaths)
val removedGames = library.games.filter { removedGamePaths.contains(it.metadata.path) }
library.games.removeAll(removedGames)
// 2. Download all images