feat: option to disable power on/off haptic (#5017)

This commit is contained in:
Peter Feerick
2024-06-09 11:13:26 +10:00
committed by GitHub
parent 2c800c0f3c
commit 42153fbb84
41 changed files with 1182 additions and 1046 deletions
+9
View File
@@ -769,6 +769,15 @@ static SetupLineDef setupLines[] = {
}
},
#endif
#if defined(HAPTIC)
{
// Power on/off haptic alarm
STR_PWR_ON_OFF_HAPTIC,
[](Window* parent, coord_t x, coord_t y) {
new ToggleSwitch(parent, {x, y, 0, EdgeTxStyles::UI_ELEMENT_HEIGHT}, GET_SET_INVERTED(g_eeGeneral.disablePwrOnOffHaptic));
}
},
#endif
#if defined(PXX2)
{
// Owner ID