diff --git a/src/main/services/window-manager.ts b/src/main/services/window-manager.ts index 1ac38c07..973a0c64 100644 --- a/src/main/services/window-manager.ts +++ b/src/main/services/window-manager.ts @@ -91,20 +91,20 @@ export class WindowManager { where: { isDeleted: false, executablePath: Not(IsNull()), + lastTimePlayed: Not(IsNull()), }, take: 5, order: { - lastTimePlayed: "DESC", + updatedAt: "DESC", }, }); const recentlyPlayedGames: Array = - games.map(({ title, id, executablePath }) => ({ + games.map(({ title, executablePath }) => ({ label: title, type: "normal", click: async () => { if (!executablePath) return; - await gameRepository.update({ id }, { executablePath }); shell.openPath(executablePath); },