diff options
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/Content.tsx | 19 | ||||
| -rw-r--r-- | src/components/StatusDisplay.tsx | 23 |
2 files changed, 2 insertions, 40 deletions
diff --git a/src/components/Content.tsx b/src/components/Content.tsx index 4e4e33a..01f94c9 100644 --- a/src/components/Content.tsx +++ b/src/components/Content.tsx @@ -15,7 +15,6 @@ import { NerdStuffModal } from "./NerdStuffModal"; import { FlatpaksModal } from "./FlatpaksModal"; import { ConfigurationData } from "../config/configSchema"; import t from '../i18n/i18n'; -import { showErrorToast, showSuccessToast } from "../utils/toastUtils"; export function Content() { const { @@ -26,8 +25,6 @@ export function Content() { losslessScalingInstalled, losslessScalingStatus, steamBranchStatus, - isSwitchingSteamBranch, - selectLosslessScalingBranch, checkInstallation } = useInstallationStatus(); @@ -71,18 +68,6 @@ export function Content() { handleUninstall(setIsInstalled, setInstallationStatus, checkInstallation); }; - const onSelectLosslessScalingBranch = async () => { - const result = await selectLosslessScalingBranch(); - if (result.success) { - showSuccessToast("Steam branch selected", result.message); - } else { - showErrorToast( - "Steam branch selection failed", - result.error || "Unable to select the lsfg-vk Steam branch" - ); - } - }; - const handleShowNerdStuff = () => { showModal(<NerdStuffModal />); }; @@ -109,8 +94,6 @@ export function Content() { losslessScalingInstalled={losslessScalingInstalled} losslessScalingStatus={losslessScalingStatus} steamBranchStatus={steamBranchStatus} - isSwitchingSteamBranch={isSwitchingSteamBranch} - onSelectLosslessScalingBranch={onSelectLosslessScalingBranch} /> </> )} @@ -192,8 +175,6 @@ export function Content() { losslessScalingInstalled={losslessScalingInstalled} losslessScalingStatus={losslessScalingStatus} steamBranchStatus={steamBranchStatus} - isSwitchingSteamBranch={isSwitchingSteamBranch} - onSelectLosslessScalingBranch={onSelectLosslessScalingBranch} /> <InstallationButton diff --git a/src/components/StatusDisplay.tsx b/src/components/StatusDisplay.tsx index 5eb1823..767e5fc 100644 --- a/src/components/StatusDisplay.tsx +++ b/src/components/StatusDisplay.tsx @@ -1,4 +1,4 @@ -import { ButtonItem, PanelSectionRow } from "@decky/ui"; +import { PanelSectionRow } from "@decky/ui"; import type { SteamBranchStatus } from "../api/lsfgApi"; interface StatusDisplayProps { @@ -7,8 +7,6 @@ interface StatusDisplayProps { losslessScalingInstalled: boolean; losslessScalingStatus: string; steamBranchStatus: SteamBranchStatus | null; - isSwitchingSteamBranch: boolean; - onSelectLosslessScalingBranch: () => void; } export function StatusDisplay({ @@ -16,9 +14,7 @@ export function StatusDisplay({ installationStatus, losslessScalingInstalled, losslessScalingStatus, - steamBranchStatus, - isSwitchingSteamBranch, - onSelectLosslessScalingBranch + steamBranchStatus }: StatusDisplayProps) { const losslessScalingAppInstalled = losslessScalingInstalled || steamBranchStatus?.installed === true; @@ -36,9 +32,6 @@ export function StatusDisplay({ gap: "6px" }} > - <span style={{ fontSize: "16px" }}> - {losslessScalingAppInstalled ? "✅" : "❌"} - </span> {losslessScalingAppInstalled ? "Lossless Scaling Installed" : "Lossless Scaling Not Installed"} </div> {!losslessScalingAppInstalled && losslessScalingStatus && ( @@ -55,9 +48,6 @@ export function StatusDisplay({ gap: "6px" }} > - <span style={{ fontSize: "16px" }}> - {isInstalled ? "✅" : "❌"} - </span> {installationStatus} </div> </div> @@ -80,15 +70,6 @@ export function StatusDisplay({ </div> )} </div> - {steamBranchStatus.needs_switch && ( - <ButtonItem - layout="below" - onClick={onSelectLosslessScalingBranch} - disabled={isSwitchingSteamBranch} - > - {isSwitchingSteamBranch ? "Selecting lsfg-vk..." : "Use lsfg-vk Steam branch"} - </ButtonItem> - )} </div> </PanelSectionRow> )} |
