mirror of
https://github.com/opentx/opentx.git
synced 2025-07-23 08:15:17 +03:00
Lua warning popups could not be canceled!
This commit is contained in:
parent
5ae3eae1d4
commit
a3cc0ee830
1 changed files with 2 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue