Handles dynamic toggling of audio-in-background feature.
| 486 | /// Handles dynamic toggling of audio-in-background feature. |
| 487 | /// </summary> |
| 488 | void HandleAudioBackgroundToggle() |
| 489 | { |
| 490 | if (Settings::ReturnSettingValue("AllowAudioInBackground") == "on" && !VolumeControl::allowedAltTabbingWithAudio) { |
| 491 | VolumeControl::AllowAltTabbingWithAudio(); |
| 492 | } else if (Settings::ReturnSettingValue("AllowAudioInBackground") == "off" && VolumeControl::allowedAltTabbingWithAudio) { |
| 493 | VolumeControl::DisableAltTabbingWithAudio(); // User originally wanted to NOT allow audio in the background, but they changed their mind, so we have to turn it on/ |
| 494 | } |
| 495 | } |
| 496 | |
| 497 | /// <summary> |
| 498 | /// Handles dynamic toggling of the two RTC message box bypass. |
no outgoing calls
no test coverage detected