Mercurial > public > ostc4
comparison 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 |
comparison
equal
deleted
inserted
replaced
810:e6827fcd7604 | 811:4c41d9a18c7f |
---|---|
178 static void openEdit_CCRModeSensorOrFixedSP(void) | 178 static void openEdit_CCRModeSensorOrFixedSP(void) |
179 { | 179 { |
180 SSettings *pSettings = settingsGetPointer(); | 180 SSettings *pSettings = settingsGetPointer(); |
181 | 181 |
182 if(pSettings->CCR_Mode == CCRMODE_Sensors) | 182 if(pSettings->CCR_Mode == CCRMODE_Sensors) |
183 { | |
183 pSettings->CCR_Mode = CCRMODE_FixedSetpoint; | 184 pSettings->CCR_Mode = CCRMODE_FixedSetpoint; |
185 disableLine(StMXTRA_O2_Fallback); | |
186 } | |
184 else | 187 else |
188 { | |
185 pSettings->CCR_Mode = CCRMODE_Sensors; | 189 pSettings->CCR_Mode = CCRMODE_Sensors; |
190 enableLine(StMXTRA_O2_Fallback); | |
191 } | |
186 | 192 |
187 exitEditWithUpdate(); | 193 exitEditWithUpdate(); |
188 } | 194 } |
189 | 195 |
190 static void openEdit_Fallback(void) | 196 static void openEdit_Fallback(void) |