- psisetup: simplify 25c79afcc31ecf4a821d19ff6eded53222a5a676

Signed-off-by: Thilo Graf <dbt@novatux.de>

commit was: - psisetup: avoid cursor on last item

 e28f72984bcbf2fda748b445934c73b841b06c21
This commit is contained in:
svenhoefer
2020-07-28 22:46:49 +02:00
committed by Thilo Graf
parent ea1a951c50
commit 0b1ad5988d

View File

@@ -190,7 +190,7 @@ int CPSISetup::exec (CMenuTarget * parent, const std::string &)
direction = -1;
/* fall through */
case CRCInput::RC_down:
if (selected + direction > -1 && selected + direction < (PSI_SCALE_COUNT - 1))
if (selected + direction > -1 && selected + direction < PSI_RESET)
{
psi_list[selected].selected = false;
paintSlider (selected);