Mercurial > public > ostc4
diff Discovery/Src/tMenuEditXtra.c @ 811:4c41d9a18c7f
Added function to skip lines which are not needed for operation:
It was not possible in the previous version to skip lines in the top level menu view which were not used for operation. In the past context sensitive menus as well as layout changes have been introduced which cause the cursor to be placed on lines without function.
To avoid this it is not possible to mark a line as not in use by enabling / disabling it by the individual meni Id.
author | Ideenmodellierer |
---|---|
date | Sun, 27 Aug 2023 20:59:12 +0200 |
parents | 9da81033ad44 |
children | c4ee952b9425 |
line wrap: on
line diff
--- a/Discovery/Src/tMenuEditXtra.c Sun Aug 27 20:55:57 2023 +0200 +++ b/Discovery/Src/tMenuEditXtra.c Sun Aug 27 20:59:12 2023 +0200 @@ -180,9 +180,15 @@ SSettings *pSettings = settingsGetPointer(); if(pSettings->CCR_Mode == CCRMODE_Sensors) + { pSettings->CCR_Mode = CCRMODE_FixedSetpoint; + disableLine(StMXTRA_O2_Fallback); + } else + { pSettings->CCR_Mode = CCRMODE_Sensors; + enableLine(StMXTRA_O2_Fallback); + } exitEditWithUpdate(); }