[apps/code] Fix sandbox and input clash

The command "squares()%input()" followed by text, OK, and a backspace
event broke an assertion on the consoleStore number of lines.
This commit is contained in:
Léa Saviot
2019-07-26 10:24:19 +02:00
committed by EmilieNumworks
parent 040a5cfb15
commit 7b84b65502

View File

@@ -93,6 +93,11 @@ const char * ConsoleController::inputText(const char * prompt) {
AppsContainer * appsContainer = AppsContainer::sharedAppsContainer();
m_inputRunLoopActive = true;
// Hide the sandbox if it is displayed
if (sandboxIsDisplayed()) {
hideSandbox();
}
const char * promptText = prompt;
char * s = const_cast<char *>(prompt);