From 016e5bb46ccf4a660b72be87efdef045a464367d Mon Sep 17 00:00:00 2001 From: y5nw <37980625+y5nw@users.noreply.github.com> Date: Sun, 1 Jun 2025 11:21:58 +0200 Subject: [PATCH] minor --- src/gui/touchcontrols.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/touchcontrols.cpp b/src/gui/touchcontrols.cpp index 72cd097ec..233a9b686 100644 --- a/src/gui/touchcontrols.cpp +++ b/src/gui/touchcontrols.cpp @@ -335,7 +335,7 @@ bool TouchControls::mayAddButton(touch_gui_button_id id) assert(ButtonLayout::isButtonValid(id)); assert(ButtonLayout::isButtonAllowed(id)); // The overflow button doesn't need a keycode to be valid. - return id == overflow_id || id_to_action(id) >= KeyType::INTERNAL_ENUM_COUNT; + return id == overflow_id || id_to_action(id) < KeyType::INTERNAL_ENUM_COUNT; } void TouchControls::addButton(std::vector &buttons, touch_gui_button_id id,