Fix audio device not restored in settings: suppress callbacks during RefreshAudioDevices

RefreshAudioDevices was firing OnRXDevChange/OnTXDevChange when restoring
the combo selection, which called ApplyAudioDevice(-1,'') and wiped
FAudioOutDevName/FAudioInDevName before LoadValues could use them.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-26 19:47:35 +03:00
co-authored by Claude Sonnet 4.6
parent 4a84cce6e2
commit 3b62a502e2
+2
View File
@@ -2051,6 +2051,7 @@ var
OldTXSel: string;
begin
Names := TStringList.Create;
FLoading := True;
try
if AudioOut <> nil then
begin
@@ -2098,6 +2099,7 @@ begin
else FCmbTXDev.ItemIndex := 0;
end;
finally
FLoading := False;
Names.Free;
end;
end;