mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-29 22:20:37 +00:00
Only show Temporary Mute if it applies
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user