mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
fix: fixing stale downloads not resetting
This commit is contained in:
parent
84c746ef35
commit
1171e95b87
8 changed files with 25 additions and 21 deletions
|
@ -41,7 +41,7 @@ export function Downloads() {
|
|||
resumeDownload,
|
||||
removeGameFromLibrary,
|
||||
cancelDownload,
|
||||
deleteGame,
|
||||
removeGameInstaller,
|
||||
isGameDeleting,
|
||||
} = useDownload();
|
||||
|
||||
|
@ -224,10 +224,8 @@ export function Downloads() {
|
|||
};
|
||||
|
||||
const handleDeleteGame = async () => {
|
||||
if (gameToBeDeleted.current) {
|
||||
await deleteGame(gameToBeDeleted.current);
|
||||
await removeGameFromLibrary(gameToBeDeleted.current);
|
||||
}
|
||||
if (gameToBeDeleted.current)
|
||||
await removeGameInstaller(gameToBeDeleted.current);
|
||||
};
|
||||
|
||||
return (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue