ui: Menu triple-click still toggles the buzzer while locked

This commit is contained in:
quyenlt298 committed 2026-11-24 22:41:34 +07:00
1 parent 03c92712b1
commit 915b6acc27
1 file changed
+2 -1
+2 -1
View File
@@ -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;