mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-01-23 21:44:55 +03:00
Removed update when clicking on a game and fixed sorting
This commit is contained in:
parent
3cbbb71768
commit
28bd70e745
@ -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<MenuItemConstructorOptions | MenuItem> =
|
||||
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);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user