Fixed an edge case durring disonnect when remember transmission

This commit is contained in:
Storm Dragon
2026-09-06 18:41:28 -04:00
parent e8df68c749
commit ca9c25f2d8
5 changed files with 11 additions and 7 deletions
+4
View File
@@ -40,6 +40,7 @@ func TestAudioSettingsExposeCurrentValuesAndPersistMicChanges(t *testing.T) {
items[0].(adminItem).action()
items[1].(adminItem).action()
b.setTransmitting(true)
items[2].(adminItem).action()
reloaded := config.NewConfig(&configPath)
if reloaded.GetAGCEnabled() {
@@ -51,6 +52,9 @@ func TestAudioSettingsExposeCurrentValuesAndPersistMicChanges(t *testing.T) {
if !reloaded.GetRememberTransmissionState() {
t.Fatal("settings action did not persist enabled transmission-state remembering")
}
if !reloaded.GetTransmissionActive() {
t.Fatal("settings action did not capture the active transmission state")
}
if got := b.adjustMicVolume(-0.1); got < 0.899 || got > 0.901 {
t.Fatalf("adjusted microphone level = %v, want 0.9", got)