feat: adding modal animations

This commit is contained in:
Chubby Granny Chaser
2024-06-08 18:58:23 +01:00
14 changed files with 270 additions and 208 deletions

View File

@@ -13,10 +13,13 @@ const createGameShortcut = async (
if (game) {
const filePath = game.executablePath;
const options = { filePath, name: game.title };
return createDesktopShortcut({
windows: { filePath },
linux: { filePath },
osx: { filePath },
windows: options,
linux: options,
osx: options,
});
}

View File

@@ -5,7 +5,10 @@ const removeGameFromLibrary = async (
_event: Electron.IpcMainInvokeEvent,
gameId: number
) => {
gameRepository.update({ id: gameId }, { isDeleted: true });
gameRepository.update(
{ id: gameId },
{ isDeleted: true, executablePath: null }
);
};
registerEvent("removeGameFromLibrary", removeGameFromLibrary);