mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-20 01:33:56 +00:00
fix: handle error on getting steam path from windows registry
This commit is contained in:
@@ -41,7 +41,9 @@ export function GameItem({ game }: GameItemProps) {
|
||||
setAdded(exists);
|
||||
}, [library, game.shop, game.objectId]);
|
||||
|
||||
const addGameToLibrary = async (event: React.MouseEvent | React.KeyboardEvent) => {
|
||||
const addGameToLibrary = async (
|
||||
event: React.MouseEvent | React.KeyboardEvent
|
||||
) => {
|
||||
event.stopPropagation();
|
||||
if (added || isAddingToLibrary) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user