1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-24 00:35:18 +03:00

Lua warning popups could not be canceled!

This commit is contained in:
Bertrand Songis 2019-06-07 11:30:50 +02:00
parent 5ae3eae1d4
commit a3cc0ee830
No known key found for this signature in database
GPG key ID: F189F79290FEC50F

View file

@ -754,7 +754,7 @@ void displayAcknowledgeLuaError(event_t event)
warningResult = false;
displayLuaError(warningText);
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) {
warningText = errorTitle;
warningType = WARNING_TYPE_INFO;
popupFunc = displayAcknowledgeLuaError;
}
else {