mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[code] In lock-on-console mode: enable poping controllers on the stack
which are above the console controller
This commit is contained in:
committed by
EmilieNumworks
parent
769bc1ad3c
commit
7df03ec762
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user