summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/Content.tsx7
-rw-r--r--src/components/SettingsTab.tsx2
-rw-r--r--src/hooks/useLsfgHooks.ts1
3 files changed, 7 insertions, 3 deletions
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(<ConfigFileTab />) }] : []),
{ 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(<ConfigFileTab />) }]
+ : []),
+ { 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) {
<PanelSectionRow>
<Field
label="Steam branch"
- description={`${steamBranchStatus.current_branch || "public"}${steamBranchStatus.needs_switch ? ` - ${steamBranchStatus.message}` : ""}`}
+ description={`${steamBranchStatus.selected_branch || "public"}${steamBranchStatus.needs_switch ? ` - ${steamBranchStatus.message}` : ""}`}
/>
</PanelSectionRow>
)}
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?.();