Skip to content

Commit

Permalink
Lua scripts not valid for inputs.
Browse files Browse the repository at this point in the history
  • Loading branch information
philmoz committed Jul 25, 2024
1 parent eae3ec3 commit ba9bae1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion radio/src/gui/navigation/navigation_x7.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ int checkIncDec(event_t event, int val, int i_min, int i_max,
}
#if defined(LUA_MODEL_SCRIPTS)
if (i_min <= MIXSRC_FIRST_LUA && i_max >= MIXSRC_FIRST_LUA) {
if (getFirstAvailable(MIXSRC_FIRST_LUA, MIXSRC_LAST_LUA, isSourceAvailable) != MIXSRC_NONE) {
if (getFirstAvailable(MIXSRC_FIRST_LUA, MIXSRC_LAST_LUA, isSourceAvailable) != MIXSRC_NONE &&
(i_flags & INCDEC_SOURCE_NOINPUTS) == 0) {
POPUP_MENU_ADD_ITEM(STR_MENU_LUA);
}
}
Expand Down

0 comments on commit ba9bae1

Please sign in to comment.