From 03413a9e6b899c2c52121c3f6aada1b1ec350c0e Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Tue, 8 Oct 2024 15:28:48 -0300 Subject: [PATCH] fix: open game installer when download is zip --- src/main/events/library/open-game-installer.ts | 3 ++- src/renderer/src/pages/game-details/sidebar/sidebar.tsx | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/events/library/open-game-installer.ts b/src/main/events/library/open-game-installer.ts index 8532dae4..b21a6f16 100644 --- a/src/main/events/library/open-game-installer.ts +++ b/src/main/events/library/open-game-installer.ts @@ -50,7 +50,8 @@ const openGameInstaller = async ( } if (fs.lstatSync(gamePath).isFile()) { - return executeGameInstaller(gamePath); + shell.showItemInFolder(gamePath); + return true; } const setupPath = path.join(gamePath, "setup.exe"); diff --git a/src/renderer/src/pages/game-details/sidebar/sidebar.tsx b/src/renderer/src/pages/game-details/sidebar/sidebar.tsx index b2c07885..fd39deeb 100644 --- a/src/renderer/src/pages/game-details/sidebar/sidebar.tsx +++ b/src/renderer/src/pages/game-details/sidebar/sidebar.tsx @@ -10,7 +10,6 @@ import { DownloadIcon, PeopleIcon } from "@primer/octicons-react"; import { HowLongToBeatSection } from "./how-long-to-beat-section"; import { howLongToBeatEntriesTable } from "@renderer/dexie"; import { SidebarSection } from "../sidebar-section/sidebar-section"; -import { useNavigate } from "react-router-dom"; export function Sidebar() { const [howLongToBeat, setHowLongToBeat] = useState<{