Register popup fix

This commit is contained in:
Bertrand Songis
2019-05-06 09:56:01 +02:00
parent 88bff79523
commit 61700b56b6
13 changed files with 26 additions and 16 deletions
+1 -1
View File
@@ -226,7 +226,7 @@ void showAlertBox(const char * title, const char * text, const char * action , u
AUDIO_ERROR_MESSAGE(sound);
lcdRefresh();
lcdSetContrast();
clearKeyEvents();
waitKeysReleased();
backlightOn();
checkBacklight();
}
+4
View File
@@ -91,6 +91,7 @@ enum
inline void POPUP_INFORMATION(const char * s)
{
killAllEvents();
warningText = s;
warningInfoText = nullptr;
warningType = WARNING_TYPE_INFO;
@@ -99,6 +100,7 @@ enum
inline void POPUP_WARNING(const char * s)
{
killAllEvents();
warningText = s;
warningInfoText = nullptr;
warningType = WARNING_TYPE_ASTERISK;
@@ -107,6 +109,7 @@ enum
inline void POPUP_CONFIRMATION(const char * s, PopupMenuHandler handler)
{
killAllEvents();
warningText = s;
warningInfoText = nullptr;
warningType = WARNING_TYPE_CONFIRM;
@@ -116,6 +119,7 @@ enum
inline void POPUP_INPUT(const char * s, PopupFunc func)
{
killAllEvents();
warningText = s;
warningInfoText = nullptr;
warningType = WARNING_TYPE_INPUT;
+1 -1
View File
@@ -110,7 +110,7 @@ void readModelNotes()
char *buf = strcat_modelname(&s_text_file[sizeof(MODELS_PATH)], g_eeGeneral.currModel);
strcpy(buf, TEXT_EXT);
clearKeyEvents();
waitKeysReleased();
event_t event = EVT_ENTRY;
while (event != EVT_KEY_BREAK(KEY_EXIT)) {
lcdRefreshWait();