Port of the popup addition

This commit is contained in:
3djc
2019-02-20 16:19:53 +01:00
committed by Bertrand Songis
parent 655966fba2
commit 64ac59dfce
16 changed files with 29 additions and 1 deletions
+5
View File
@@ -97,6 +97,11 @@ void runPopupWarning(event_t event)
lcdDrawText(WARNING_LINE_X, WARNING_LINE_Y+2*FH, warningType == WARNING_TYPE_INFO ? STR_OK : (warningType == WARNING_TYPE_ASTERISK ? STR_EXIT : STR_POPUPS_ENTER_EXIT));
switch (event) {
case EVT_KEY_BREAK(KEY_ENTER):
if(warningType == WARNING_TYPE_INFO) {
warningText = NULL;
warningType = WARNING_TYPE_ASTERISK;
}
// no break
if (warningType == WARNING_TYPE_ASTERISK)
break;
warningResult = true;