fix(color): popup warning may block UI and key input (#6648)
This commit is contained in:
@@ -267,10 +267,8 @@ void POPUP_INFORMATION(const char * s)
|
||||
popupFunc = runPopupWarning;
|
||||
}
|
||||
|
||||
void POPUP_WARNING(const char * message, const char * info, bool waitForClose)
|
||||
void POPUP_WARNING(const char * message, const char * info)
|
||||
{
|
||||
(void)waitForClose;
|
||||
|
||||
warningText = message;
|
||||
warningInfoText = info;
|
||||
warningInfoLength = info ? strlen(info) : 0;
|
||||
@@ -279,6 +277,12 @@ void POPUP_WARNING(const char * message, const char * info, bool waitForClose)
|
||||
popupFunc = runPopupWarning;
|
||||
}
|
||||
|
||||
bool POPUP_WARNING_ON_UI_TASK(const char * message, const char * info)
|
||||
{
|
||||
POPUP_WARNING(message, info);
|
||||
return true;
|
||||
}
|
||||
|
||||
void SET_WARNING_INFO(const char * info, uint8_t length, uint8_t flags)
|
||||
{
|
||||
warningInfoText = info;
|
||||
|
||||
Reference in New Issue
Block a user