fix: open game installer when download is zip

This commit is contained in:
Zamitto 2024-10-08 15:28:48 -03:00
parent ffac677e3f
commit 03413a9e6b
2 changed files with 2 additions and 2 deletions

View file

@ -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");

View file

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