[apps/code] Display the console before running auto-imported script

This commit is contained in:
Léa Saviot
2020-01-16 17:36:20 +01:00
parent 42bdf29ead
commit f20bb1fcf2

View File

@@ -78,6 +78,12 @@ void ConsoleController::runAndPrintForCommand(const char * command) {
m_consoleStore.pushCommand(command, strlen(command));
assert(m_outputAccumulationBuffer[0] == '\0');
// Draw the console before running the code
// TODO LEA Hide the input line?
m_selectableTableView.reloadData();
m_selectableTableView.selectCellAtLocation(0, m_consoleStore.numberOfLines());
AppsContainer::sharedAppsContainer()->redrawWindow();
runCode(command);
flushOutputAccumulationBufferToStore();
m_consoleStore.deleteLastLineIfEmpty();