mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[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:
committed by
EmilieNumworks
parent
040a5cfb15
commit
7b84b65502
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user