[code] In lock-on-console mode: enable poping controllers on the stack

which are above the console controller
This commit is contained in:
Émilie Feral
2018-06-13 11:55:16 +02:00
committed by EmilieNumworks
parent 769bc1ad3c
commit 7df03ec762

View File

@@ -286,7 +286,12 @@ bool ConsoleController::textFieldDidAbortEditing(TextField * textField) {
askInputRunLoopTermination();
} else {
#if EPSILON_GETOPT
if (!m_locked) {
/* In order to lock the console controller, we disable poping controllers
* below the console controller included. The stack should only hold:
* - the menu controller
* - the console controller
* The depth of the stack controller must always be above or equal to 2. */
if (!m_locked || stackViewController()->depth() > 2) {
#endif
stackViewController()->pop();
#if EPSILON_GETOPT