mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
set executable as null on remove game from library
This commit is contained in:
parent
97abef740c
commit
163b17324e
2 changed files with 5 additions and 2 deletions
|
@ -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": {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue