Skip to content

Commit

Permalink
fix: removed winetricks and sync-saves button
Browse files Browse the repository at this point in the history
  • Loading branch information
flavioislima committed Dec 31, 2020
1 parent 1cf8ba5 commit ac4b23b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions public/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ ipcMain.handle("legendary", async (event, args) => {
const isAuth = args.includes("auth");

if (isLaunch) {
await execAsync(`${legendaryBin} ${args}`).then(
async () => await execAsync(`${legendaryBin} sync-saves ${args.split(' ')[1]}`)
);
await execAsync(`${legendaryBin} ${args}`)
}

if (!isLaunch && !isAuth) {
Expand Down
4 changes: 1 addition & 3 deletions src/components/UI/GameConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function GameConfig({ location }: Card) {
<div className="gameInfo">
<div className="infoWrapper">
<span>Installed: {`${isInstalled ? "Yes" : "No"}`}</span>
<span>appName: {appName}</span>
<div>appName: {appName}</div>
<div>Developer: {developer}</div>
{isInstalled && (
<>
Expand All @@ -75,7 +75,6 @@ export default function GameConfig({ location }: Card) {
>
{playing ? "Playing" : "Play"}
</div>
<div onClick={() => legendary(`sync-saves ${appName}`)} className="button">Sync Saves</div>
</>
)}
<div
Expand All @@ -94,7 +93,6 @@ export default function GameConfig({ location }: Card) {
>
{`${isInstalled ? "Uninstall" : installing ? "Installing" : "Install"}`}
</div>
<div className="button">Winetricks</div>
<div onClick={() => createNewWindow(formatStoreUrl(title))} className="button">Epic Store</div>
<div onClick={() => createNewWindow(protonDBurl)} className="button">ProtonDB</div>
</div>
Expand Down

0 comments on commit ac4b23b

Please sign in to comment.