ui: Menu triple-click still toggles the buzzer while locked
This commit is contained in:
1 parent
03c92712b1
commit
915b6acc27
1 file changed
+2
-1
@@ -1036,7 +1036,8 @@ void UITask::loop() {
|
||||
c = handleLongPress(KEY_RIGHT);
|
||||
}
|
||||
ev = back_btn.check();
|
||||
if (_node_prefs->ui_button_lock && ev != BUTTON_EVENT_NONE) {
|
||||
if (_node_prefs->ui_button_lock && ev != BUTTON_EVENT_NONE
|
||||
&& ev != BUTTON_EVENT_TRIPLE_CLICK) { // buzzer toggle still works while locked
|
||||
checkDisplayOn(0);
|
||||
if (ev == BUTTON_EVENT_DOUBLE_CLICK) { // unlock needs a joystick press within 3 sec
|
||||
_unlock_until = millis() + 3000;
|
||||
|
||||
Reference in new issue
Block a user