mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[code] Fixed bug when importing scripts that draw on screen.
The drawing should happen after the ConsoleController is pushed on the screen. This means that the importation of scripts should be done at the ConsoleController's viewWillAppear. Change-Id: I756ac9de30f339dc4f6aa8d3995abea0a46d03b5
This commit is contained in:
@@ -130,8 +130,8 @@ void MenuController::loadPythonIfNeeded() {
|
||||
void MenuController::openConsoleWithScriptAtIndex(int scriptIndex) {
|
||||
reloadConsole();
|
||||
if (m_consoleController.loadPythonEnvironment(false)) {
|
||||
m_consoleController.autoImportScriptAtIndex(scriptIndex, true);
|
||||
stackViewController()->push(&m_consoleController);
|
||||
m_consoleController.autoImportScriptAtIndex(scriptIndex, true);
|
||||
}
|
||||
m_reloadConsoleWhenBecomingFirstResponder = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user