[code] Fixed Execute Script bug.

When disabling a script auto-import parameter, it would not import
itself when executing it from its script parameters menu.

Change-Id: If58f6fe1be4792b551ad3b462f1f43e8b82e8148
This commit is contained in:
Léa Saviot
2017-11-29 17:56:00 +01:00
parent 6ab9a36472
commit dd1fe77832
3 changed files with 4 additions and 4 deletions

View File

@@ -130,7 +130,7 @@ void MenuController::loadPythonIfNeeded() {
void MenuController::openConsoleWithScriptAtIndex(int scriptIndex) {
reloadConsole();
if (m_consoleController.loadPythonEnvironment(false)) {
m_consoleController.autoImportScriptAtIndex(scriptIndex);
m_consoleController.autoImportScriptAtIndex(scriptIndex, true);
stackViewController()->push(&m_consoleController);
}
m_reloadConsoleWhenBecomingFirstResponder = true;