feat(cpn): User configurable audio mute in radio settings (#3735)
* feat(cpn): User configurable audio mute in radio settings (#3710) * CPN: user configurable audio mute in radio settings. Supports PR #3703 * make checkbox only visible for radios with AUDIO_MUTE_GPIO pin: - All color lcd radios (including NV14) except Horus X12S - TX12, TX12MK2, ZORRO, BOXER, T8, TLITE, TPRO, LR3PRO, COMMANDO8 * chore: Add Companion translations --------- Co-authored-by: Michael <mha1@users.noreply.github.com>
This commit is contained in:
@@ -174,6 +174,14 @@ HardwarePanel::HardwarePanel(QWidget * parent, GeneralSettings & generalSettings
|
||||
addParams();
|
||||
}
|
||||
|
||||
if (Boards::getCapability(board, Board::HasAudioMuteGPIO)) {
|
||||
addLabel(tr("Mute if no sound"));
|
||||
AutoCheckBox *muteIfNoSound = new AutoCheckBox(this);
|
||||
muteIfNoSound->setField(generalSettings.muteIfNoSound, this, false);
|
||||
params->append(muteIfNoSound);
|
||||
addParams();
|
||||
}
|
||||
|
||||
if (firmware->getCapability(HasBluetooth)) {
|
||||
addLabel(tr("Bluetooth"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user