Skip to content

Commit

Permalink
drop guard
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilNarayana committed Oct 14, 2023
1 parent 471b9b0 commit 609bd7f
Showing 1 changed file with 10 additions and 17 deletions.
27 changes: 10 additions & 17 deletions src/renderer/containers/Settings/DolphinSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import capitalize from "lodash/capitalize";
import React from "react";

import { ConfirmationModal } from "@/components/ConfirmationModal";
import { DevGuard } from "@/components/DevGuard";
import { useDolphinActions } from "@/lib/dolphin/useDolphinActions";
import { DolphinStatus, useDolphinStore } from "@/lib/dolphin/useDolphinStore";
import { useDolphinBeta } from "@/lib/hooks/useSettings";
Expand Down Expand Up @@ -172,22 +171,16 @@ export const DolphinSettings = ({ dolphinType }: { dolphinType: DolphinLaunchTyp
</Button>
</div>
</SettingItem>
{dolphinType === DolphinLaunchType.NETPLAY && (
<DevGuard show={enableMainlineDolphin}>
<SettingItem
name={`${dolphinTypeName} Dolphin Release Channel`}
description="Choose which Slippi Dolphin version to install"
>
<RadioGroup value={dolphinBeta} onChange={(_event, value) => onDolphinBetaChange(value)}>
<FormControlLabel
value={false}
label="Stable (Ishiiruka)"
control={<Radio disabled={!dolphinIsReady} />}
/>
<FormControlLabel value={true} label="Beta (Mainline)" control={<Radio disabled={!dolphinIsReady} />} />
</RadioGroup>
</SettingItem>
</DevGuard>
{enableMainlineDolphin && dolphinType === DolphinLaunchType.NETPLAY && (
<SettingItem
name={`${dolphinTypeName} Dolphin Release Channel`}
description="Choose which Slippi Dolphin version to install"
>
<RadioGroup value={dolphinBeta} onChange={(_event, value) => onDolphinBetaChange(value)}>
<FormControlLabel value={false} label="Stable (Ishiiruka)" control={<Radio disabled={!dolphinIsReady} />} />
<FormControlLabel value={true} label="Beta (Mainline)" control={<Radio disabled={!dolphinIsReady} />} />
</RadioGroup>
</SettingItem>
)}
{isWindows && (
<ImportDolphinConfigForm
Expand Down

0 comments on commit 609bd7f

Please sign in to comment.