Only show Temporary Mute if it applies

This commit is contained in:
Jason P
2025-12-27 21:07:09 -06:00
parent ae770e9c6c
commit fbd866fda3

View File

@@ -849,13 +849,14 @@ void menuHandler::homeBaseMenu()
static int optionsEnumArray[enumEnd] = {Back};
int options = 1;
if (!isMuted) {
optionsArray[options] = "Temporarily Mute";
} else {
optionsArray[options] = "Unmute";
if (config.device.buzzer_mode != meshtastic_Config_DeviceConfig_BuzzerMode_DISABLED) {
if (!isMuted) {
optionsArray[options] = "Temporarily Mute";
} else {
optionsArray[options] = "Unmute";
}
optionsEnumArray[options++] = Mute;
}
optionsEnumArray[options++] = Mute;
#if defined(PIN_EINK_EN) || defined(PCA_PIN_EINK_EN)
optionsArray[options] = "Toggle Backlight";
optionsEnumArray[options++] = Backlight;