mirror of
https://git.vladimir.cc/vladimir/ewsdr.git
synced 2026-08-25 17:27:32 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user