From c215aedc0dc313b75e3f60f28896af2f37e8b204 Mon Sep 17 00:00:00 2001 From: Jack Kingsman Date: Mon, 16 Mar 2026 20:30:34 -0700 Subject: [PATCH] Let the radio settings pane open but not be used, rather than disabled --- frontend/src/App.tsx | 7 ------- frontend/src/components/SettingsModal.tsx | 8 +++----- frontend/src/test/appStartupHash.test.tsx | 10 ++++------ frontend/src/test/settingsModal.test.tsx | 18 ++++++------------ 4 files changed, 13 insertions(+), 30 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 9e68741..43425a4 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -255,12 +255,6 @@ export function App() { refreshUnreads, } = useUnreadCounts(channels, contacts, activeConversation); - useEffect(() => { - if (showSettings && !config && settingsSection === 'radio') { - setSettingsSection('local'); - } - }, [config, settingsSection, setSettingsSection, showSettings]); - useEffect(() => { if (activeConversation?.type !== 'channel') { setChannelUnreadMarker(null); @@ -573,7 +567,6 @@ export function App() { settingsSection={settingsSection} sidebarOpen={sidebarOpen} showCracker={showCracker} - disabledSettingsSections={config ? [] : ['radio']} onSettingsSectionChange={setSettingsSection} onSidebarOpenChange={setSidebarOpen} onCrackerRunningChange={setCrackerRunning} diff --git a/frontend/src/components/SettingsModal.tsx b/frontend/src/components/SettingsModal.tsx index 117d100..616b796 100644 --- a/frontend/src/components/SettingsModal.tsx +++ b/frontend/src/components/SettingsModal.tsx @@ -155,13 +155,11 @@ export function SettingsModal(props: SettingsModalProps) { const renderSectionHeader = (section: SettingsSection): ReactNode => { if (!showSectionButton) return null; const Icon = SETTINGS_SECTION_ICONS[section]; - const disabled = section === 'radio' && !config; return (