mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/code] Fix variables loading in the console
The two following scenari display empty variable boxes, when there should be loaded variables. 1) Open the console, go back to the scripts menu, go back to the console, open the variable box 2) Open the console, execute mandelbrot, open the variable box
This commit is contained in:
@@ -48,6 +48,7 @@ ConsoleController::ConsoleController(Responder * parentResponder, App * pythonDe
|
||||
|
||||
bool ConsoleController::loadPythonEnvironment() {
|
||||
if (!m_pythonDelegate->isPythonUser(this)) {
|
||||
m_scriptStore->clearConsoleFetchInformation();
|
||||
emptyOutputAccumulationBuffer();
|
||||
m_pythonDelegate->initPythonWithUser(this);
|
||||
MicroPython::registerScriptProvider(m_scriptStore);
|
||||
@@ -173,7 +174,6 @@ const char * ConsoleController::inputText(const char * prompt) {
|
||||
|
||||
void ConsoleController::viewWillAppear() {
|
||||
ViewController::viewWillAppear();
|
||||
m_scriptStore->clearConsoleFetchInformation();
|
||||
loadPythonEnvironment();
|
||||
if (m_importScriptsWhenViewAppears) {
|
||||
m_importScriptsWhenViewAppears = false;
|
||||
|
||||
Reference in New Issue
Block a user