From b03471f869c29fc066fc02f7c59f76e3ac4eea4d Mon Sep 17 00:00:00 2001
From: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>
Date: Sun, 13 Sep 2026 07:47:06 -0400
Subject: fix: handle v1-v2 migration state cleanly
---
src/components/Content.tsx | 7 ++++++-
src/components/SettingsTab.tsx | 2 +-
src/hooks/useLsfgHooks.ts | 1 -
3 files changed, 7 insertions(+), 3 deletions(-)
(limited to 'src')
diff --git a/src/components/Content.tsx b/src/components/Content.tsx
index 470db95..fdb7afa 100644
--- a/src/components/Content.tsx
+++ b/src/components/Content.tsx
@@ -251,7 +251,12 @@ export function Content() {
...(showDebugTab ? [{ id: "ConfigFile", title: tabIcons.configFile, content: tabContent() }] : []),
{ id: "Settings", title: tabIcons.settings, content: tabContent(settings) },
]
- : [{ id: "Settings", title: tabIcons.settings, content: tabContent(settings) }];
+ : [
+ ...(isInstalled && showDebugTab
+ ? [{ id: "ConfigFile", title: tabIcons.configFile, content: tabContent() }]
+ : []),
+ { id: "Settings", title: tabIcons.settings, content: tabContent(settings) },
+ ];
const availableTabIds = new Set(tabs.map(({ id }) => id));
const activeTab = availableTabIds.has(tab) ? tab : setupComplete ? "Steam" : "Settings";
diff --git a/src/components/SettingsTab.tsx b/src/components/SettingsTab.tsx
index 35a74cc..d06cb52 100644
--- a/src/components/SettingsTab.tsx
+++ b/src/components/SettingsTab.tsx
@@ -59,7 +59,7 @@ export function SettingsTab(props: SettingsTabProps) {
)}
diff --git a/src/hooks/useLsfgHooks.ts b/src/hooks/useLsfgHooks.ts
index 0f51e90..2181272 100644
--- a/src/hooks/useLsfgHooks.ts
+++ b/src/hooks/useLsfgHooks.ts
@@ -63,7 +63,6 @@ export function useInstallation(
showInstallErrorToast(result.error ?? undefined);
return;
}
- setIsInstalled(true);
setInstallationStatus("lsfg-vk installed");
showInstallSuccessToast();
await reloadConfig?.();
--
cgit v1.2.3