Fix frequency reset to 7115 MHz after start/stop or restart

Save current band and global settings in the STOP path so the next
START restores the frequency the user was on, not the hardcoded default.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-27 21:38:23 +03:00
co-authored by Claude Sonnet 4.6
parent ee9947acde
commit e2affbb440
+7
View File
@@ -2582,6 +2582,13 @@ begin
FRXPacketCount := 0;
FActiveDDC := 0;
StatusBar1.Panels[3].Text := 'RX: waiting...';
// Сохраняем текущую частоту/настройки чтобы следующий START восстановил их
if FDevConnected then
begin
SaveCurrentBand;
FSettings.SaveGlobal(FDevMAC, MakeGlobalSettings);
FSettings.Save;
end;
FSpecView.ResetSpectrumBuf;
FSpecView.DrawSpectrum;
PbSpectrum.Invalidate;