Skip to content

Commit

Permalink
Do not show warning for unplugging
Browse files Browse the repository at this point in the history
  • Loading branch information
asportnoy committed Mar 1, 2023
1 parent e12793d commit 7d635e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/renderer/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export default function App(): React.ReactElement {
element={
<ChoosePlatform
platformData={platformData}
action={action}
platforms={platforms}
setPlatforms={setPlatforms}
init={init}
Expand Down
4 changes: 3 additions & 1 deletion src/renderer/steps/ChoosePlatform.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ import { useState } from "react";

export function ChoosePlatform({
platformData,
action,
platforms,
setPlatforms,
init,
}: {
platformData: Record<DiscordPlatform, PlatformData> | null;
action: "plug" | "unplug";
platforms: DiscordPlatform[];
setPlatforms: (platforms: DiscordPlatform[]) => void;
init: (reset?: boolean) => Promise<void>;
Expand Down Expand Up @@ -72,7 +74,7 @@ export function ChoosePlatform({
))}
</div>
<div className="platform-note">Please quit Discord before continuing.</div>
{hasAlreadyPluggedPlatform && (
{action === "plug" && hasAlreadyPluggedPlatform && (
<div className="platform-warning">
One of the selected platforms is already plugged or has another client mod installed.
Plugging it again will overwrite the existing mod.
Expand Down

0 comments on commit 7d635e9

Please sign in to comment.