[apps/code] Do not refresh the print if the sandbox is displayed

Otherwise the first responder becomes the console edit line, and events
(such as Toolbox) are not intercepted by the sandbox anymore.
This commit is contained in:
Léa Saviot
2020-02-21 17:57:22 +01:00
committed by EmilieNumworks
parent 383aafcc55
commit 02e79ad595

View File

@@ -399,6 +399,9 @@ void ConsoleController::resetSandbox() {
}
void ConsoleController::refreshPrintOutput() {
if (sandboxIsDisplayed()) {
return;
}
m_selectableTableView.reloadData();
m_selectableTableView.selectCellAtLocation(0, m_consoleStore.numberOfLines());
if (m_preventEdition) {