diff --git a/public/index.html b/public/index.html index 7670964..43cac58 100644 --- a/public/index.html +++ b/public/index.html @@ -2771,6 +2771,18 @@ const [layout, setLayout] = useState(config.layout || 'modern'); const [dxClusterSource, setDxClusterSource] = useState(config.dxClusterSource || 'auto'); + // Sync local state when config changes or panel opens + useEffect(() => { + if (isOpen) { + setCallsign(config.callsign); + setLat(config.location.lat.toString()); + setLon(config.location.lon.toString()); + setTheme(config.theme || 'dark'); + setLayout(config.layout || 'modern'); + setDxClusterSource(config.dxClusterSource || 'auto'); + } + }, [isOpen, config]); + // Calculate grid square from lat/lon useEffect(() => { const latNum = parseFloat(lat); @@ -3477,27 +3489,6 @@ {/* RIGHT SIDEBAR */}
- {/* Satellite Toggle at top */} -
- 🛰 SATELLITES - -
- {/* DX Cluster - Compact */}