fix(color): popup warning may block UI and key input (#6648)

This commit is contained in:
philmoz
2025-10-14 21:09:07 +10:00
committed by GitHub
parent dbffe1b193
commit d66cf1fc0d
6 changed files with 19 additions and 26 deletions
+7 -3
View File
@@ -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;