From d13309f0276e67698bc1e595874a3b9dc866b9d6 Mon Sep 17 00:00:00 2001 From: accius Date: Sat, 31 Jan 2026 17:44:35 -0500 Subject: [PATCH] Update index.html --- public/index.html | 33 ++++++++++++--------------------- 1 file changed, 12 insertions(+), 21 deletions(-) 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 */}