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:
parent
5ae3eae1d4
commit
a3cc0ee830
1 changed files with 2 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue