Lua warning popups could not be canceled!
This commit is contained in:
@@ -754,7 +754,7 @@ void displayAcknowledgeLuaError(event_t event)
|
|||||||
warningResult = false;
|
warningResult = false;
|
||||||
displayLuaError(warningText);
|
displayLuaError(warningText);
|
||||||
if (event == EVT_KEY_BREAK(KEY_EXIT)) {
|
if (event == EVT_KEY_BREAK(KEY_EXIT)) {
|
||||||
warningText = NULL;
|
warningText = nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -792,6 +792,7 @@ void luaError(lua_State * L, uint8_t error, bool acknowledge)
|
|||||||
|
|
||||||
if (acknowledge) {
|
if (acknowledge) {
|
||||||
warningText = errorTitle;
|
warningText = errorTitle;
|
||||||
|
warningType = WARNING_TYPE_INFO;
|
||||||
popupFunc = displayAcknowledgeLuaError;
|
popupFunc = displayAcknowledgeLuaError;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user