Register popup fix
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user