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<{