mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-03 00:33:49 +03:00
undo addGameToLibrary change
This commit is contained in:
parent
2c26fed478
commit
581f7983aa
@ -77,11 +77,13 @@ export function HeroPanelActions() {
|
|||||||
if (game) {
|
if (game) {
|
||||||
await removeGameFromLibrary(game.id);
|
await removeGameFromLibrary(game.id);
|
||||||
} else {
|
} else {
|
||||||
|
const gameExecutablePath = await selectGameExecutable();
|
||||||
|
|
||||||
await window.electron.addGameToLibrary(
|
await window.electron.addGameToLibrary(
|
||||||
objectID!,
|
objectID!,
|
||||||
gameTitle,
|
gameTitle,
|
||||||
"steam",
|
"steam",
|
||||||
null
|
gameExecutablePath
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -224,7 +226,7 @@ export function HeroPanelActions() {
|
|||||||
if (game) {
|
if (game) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{game?.progress === 1 && game?.folderName && (
|
{game.progress === 1 && game.downloadPath && (
|
||||||
<>
|
<>
|
||||||
<BinaryNotFoundModal
|
<BinaryNotFoundModal
|
||||||
visible={showBinaryNotFoundModal}
|
visible={showBinaryNotFoundModal}
|
||||||
@ -242,9 +244,9 @@ export function HeroPanelActions() {
|
|||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{game?.progress === 1 && !game?.folderName && showDownloadOptionsButton}
|
{game.progress === 1 && !game.downloadPath && showDownloadOptionsButton}
|
||||||
|
|
||||||
{game?.progress !== 1 && toggleGameOnLibraryButton}
|
{game.progress !== 1 && toggleGameOnLibraryButton}
|
||||||
|
|
||||||
{isGameRunning ? (
|
{isGameRunning ? (
|
||||||
<Button
|
<Button
|
||||||
|
Loading…
Reference in New Issue
Block a user