From cead92d900fe1f076dddbc9abb2af88387d4ab9a Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Fri, 7 Jun 2024 13:14:17 -0300 Subject: [PATCH] disable button logic --- .../src/pages/game-details/modals/game-options-modal.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 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 45877b17..711fd6ba 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 @@ -87,8 +87,7 @@ export function GameOptionsModal({ onClick={handleCreateShortcut} style={{ alignSelf: "flex-end" }} theme="outline" - disabled={deleting || !game.executablePath} - title={t("create_shortcut")} + disabled={deleting || !game.downloadPath} > {"Abrir local de download"} @@ -97,7 +96,6 @@ export function GameOptionsModal({ style={{ alignSelf: "flex-end" }} theme="outline" disabled={deleting || !game.executablePath} - title={t("create_shortcut")} > {t("create_shortcut")} @@ -134,8 +132,7 @@ export function GameOptionsModal({ onClick={handleCreateShortcut} style={{ alignSelf: "flex-end" }} theme="outline" - disabled={deleting || !game.executablePath} - title={t("create_shortcut")} + disabled={deleting || !game.downloadPath} > Remover arquivos @@ -146,7 +143,6 @@ export function GameOptionsModal({ style={{ alignSelf: "flex-end" }} theme="outline" disabled={deleting} - title={t("create_shortcut")} > Remover da biblioteca