From 163b17324ec3786ad88d7c0736286ca00055c719 Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Fri, 7 Jun 2024 18:55:03 -0300 Subject: [PATCH 1/9] set executable as null on remove game from library --- src/locales/pt/translation.json | 2 +- src/main/events/library/remove-game-from-library.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.json index 9b34e09d..ee404e9f 100644 --- a/src/locales/pt/translation.json +++ b/src/locales/pt/translation.json @@ -104,7 +104,7 @@ "open_download_location": "Abrir local de download", "create_shortcut": "Criar atalho", "remove_files": "Remover arquivos", - "remove_from_library_description": "Tem certeza que deseja remover {{game}} da sua biblioteca?", + "remove_from_library_description": "Isso irá remover {{game}} da sua biblioteca", "remove_from_library_title": "Tem certeza?" }, "activation": { diff --git a/src/main/events/library/remove-game-from-library.ts b/src/main/events/library/remove-game-from-library.ts index 2581a555..29a7a635 100644 --- a/src/main/events/library/remove-game-from-library.ts +++ b/src/main/events/library/remove-game-from-library.ts @@ -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); From 9eef445b1a18e12d411ce5c31dc45d4b9d12eb0a Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Fri, 7 Jun 2024 23:37:03 -0300 Subject: [PATCH 2/9] trying better ui on modal #1 --- .../modals/game-options-modal.tsx | 45 +++++++++++-------- 1 file changed, 27 insertions(+), 18 deletions(-) diff --git a/src/renderer/src/pages/game-details/modals/game-options-modal.tsx b/src/renderer/src/pages/game-details/modals/game-options-modal.tsx index 145e262c..64732571 100644 --- a/src/renderer/src/pages/game-details/modals/game-options-modal.tsx +++ b/src/renderer/src/pages/game-details/modals/game-options-modal.tsx @@ -93,14 +93,8 @@ export function GameOptionsModal({ />