mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 08:47:28 +01:00
[code] Load Variable box content before compiling any other python code
to avoid memory exhaustion when displaying variable box
This commit is contained in:
@@ -105,6 +105,10 @@ const char * ConsoleController::inputText(const char * prompt) {
|
||||
|
||||
void ConsoleController::viewWillAppear() {
|
||||
loadPythonEnvironment();
|
||||
/* We load functions and variables names in the variable box before running
|
||||
* any other python code to avoid failling to load functions and variables
|
||||
* due to memory exhaustion. */
|
||||
static_cast<App *>(app())->variableBoxController()->loadFunctionsAndVariables();
|
||||
m_sandboxIsDisplayed = false;
|
||||
if (m_importScriptsWhenViewAppears) {
|
||||
m_importScriptsWhenViewAppears = false;
|
||||
|
||||
Reference in New Issue
Block a user