mirror of
https://github.com/opentx/opentx.git
synced 2025-07-16 04:45:17 +03:00
Re #2469: part1: Menu system renaming of variables and refactoring (ported #3087 from master commits 3186a5d99..94d8b8b0e8d)
This commit is contained in:
parent
ab99740e1b
commit
51b8f9b054
96 changed files with 2150 additions and 2167 deletions
|
@ -301,7 +301,7 @@ bool isSwitchAvailableInLogicalSwitches(int swtch)
|
|||
|
||||
bool isSwitchAvailableInCustomFunctions(int swtch)
|
||||
{
|
||||
if (g_menuStack[g_menuStackPtr] == menuModelCustomFunctions)
|
||||
if (menuHandlers[menuLevel] == menuModelCustomFunctions)
|
||||
return isSwitchAvailable(swtch, ModelCustomFunctionsContext);
|
||||
else
|
||||
return isSwitchAvailable(swtch, GeneralCustomFunctionsContext);
|
||||
|
@ -346,7 +346,7 @@ bool isLogicalSwitchFunctionAvailable(int function)
|
|||
bool isAssignableFunctionAvailable(int function)
|
||||
{
|
||||
#if defined(OVERRIDE_CHANNEL_FUNCTION) || defined(GVARS)
|
||||
bool modelFunctions = (g_menuStack[g_menuStackPtr] == menuModelCustomFunctions);
|
||||
bool modelFunctions = (menuHandlers[menuLevel] == menuModelCustomFunctions);
|
||||
#endif
|
||||
|
||||
switch (function) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue