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
Scenario: execute a script, open the variable box, select a leaf, reopen the variable box -> it shows empty
This commit is contained in:
@@ -177,10 +177,11 @@ void VariableBoxController::loadFunctionsAndVariables(int scriptIndex, const cha
|
||||
Script script = m_scriptStore->scriptAtIndex(scriptIndex);
|
||||
assert(!script.isNull());
|
||||
|
||||
/* Handle the FetchedStatus: we will import the current script variables in
|
||||
* loadCurrentVariablesInScript, so we do not want to import those variables
|
||||
* before, if any imported script also imported the current script. */
|
||||
assert(!script.fetchedFromConsole() && !script.fetchedForVariableBox());
|
||||
/* Handle the fetchedForVariableBox status: we will import the current script
|
||||
* variables in loadCurrentVariablesInScript, so we do not want to import
|
||||
* those variables before, if any imported script also imported the current
|
||||
* script. */
|
||||
assert(!script.fetchedForVariableBox());
|
||||
script.setFetchedForVariableBox(true);
|
||||
|
||||
// Load the imported and current variables
|
||||
|
||||
Reference in New Issue
Block a user