| 393 | } |
| 394 | |
| 395 | void MeterPanel::UpdateSelectedPrefs(int id) |
| 396 | { |
| 397 | if (id == MeterPrefsID()) |
| 398 | { |
| 399 | #if USE_PORTMIXER |
| 400 | if (mIsInput && mSlider) |
| 401 | { |
| 402 | // Show or hide the input slider based on whether it works |
| 403 | auto gAudioIO = AudioIO::Get(); |
| 404 | mSlider->SetEnabled(mEnabled && gAudioIO->InputMixerWorks()); |
| 405 | } |
| 406 | #endif |
| 407 | UpdatePrefs(); |
| 408 | } |
| 409 | } |
| 410 | |
| 411 | void MeterPanel::UpdateSliderControl() |
| 412 | { |
nothing calls this directly
no test coverage detected