From 89e64a7dbddb8f713dd2ca37131924e8bd8ab51f Mon Sep 17 00:00:00 2001
From: xXJSONDeruloXx <danielhimebauch@gmail.com>
Date: Sat, 5 Sep 2026 23:58:16 -0400
Subject: feat: select Lossless Scaling lsfg-vk branch

---
 src/components/Content.tsx | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

(limited to 'src/components/Content.tsx')

diff --git a/src/components/Content.tsx b/src/components/Content.tsx
index aab2fb8..4e4e33a 100644
--- a/src/components/Content.tsx
+++ b/src/components/Content.tsx
@@ -15,6 +15,7 @@ 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 {
@@ -24,6 +25,9 @@ export function Content() {
     setInstallationStatus,
     losslessScalingInstalled,
     losslessScalingStatus,
+    steamBranchStatus,
+    isSwitchingSteamBranch,
+    selectLosslessScalingBranch,
     checkInstallation
   } = useInstallationStatus();
 
@@ -67,6 +71,18 @@ 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 />);
   };
@@ -92,6 +108,9 @@ export function Content() {
             installationStatus={installationStatus}
             losslessScalingInstalled={losslessScalingInstalled}
             losslessScalingStatus={losslessScalingStatus}
+            steamBranchStatus={steamBranchStatus}
+            isSwitchingSteamBranch={isSwitchingSteamBranch}
+            onSelectLosslessScalingBranch={onSelectLosslessScalingBranch}
           />
         </>
       )}
@@ -172,6 +191,9 @@ export function Content() {
             installationStatus={installationStatus}
             losslessScalingInstalled={losslessScalingInstalled}
             losslessScalingStatus={losslessScalingStatus}
+            steamBranchStatus={steamBranchStatus}
+            isSwitchingSteamBranch={isSwitchingSteamBranch}
+            onSelectLosslessScalingBranch={onSelectLosslessScalingBranch}
           />
 
           <InstallationButton
-- 
cgit v1.2.3

