mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-15 04:32:13 +00:00
Removed update when clicking on a game and fixed sorting
This commit is contained in:
parent
3cbbb71768
commit
28bd70e745
1 changed files with 3 additions and 3 deletions
|
@ -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 a new issue