mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/code] Fix script importation status
Scenario: Execute the script parabola.py, open the variable box, select any leaf, enter, open the variable box again -> no variables are loaded anymore
This commit is contained in:
@@ -31,16 +31,24 @@ const char * ScriptStore::contentOfScript(const char * name, bool markAsFetched)
|
||||
return nullptr;
|
||||
}
|
||||
if (markAsFetched) {
|
||||
script.setContentFetchedFromConsole();
|
||||
script.setFetchedFromConsole(true);
|
||||
}
|
||||
return script.content();
|
||||
}
|
||||
|
||||
void ScriptStore::clearFetchInformation() {
|
||||
void ScriptStore::clearVariableBoxFetchInformation() {
|
||||
// TODO optimize fetches
|
||||
const int scriptsCount = numberOfScripts();
|
||||
for (int i = 0; i < scriptsCount; i++) {
|
||||
scriptAtIndex(i).resetContentFetchedStatus();
|
||||
scriptAtIndex(i).setFetchedForVariableBox(false);
|
||||
}
|
||||
}
|
||||
|
||||
void ScriptStore::clearConsoleFetchInformation() {
|
||||
// TODO optimize fetches
|
||||
const int scriptsCount = numberOfScripts();
|
||||
for (int i = 0; i < scriptsCount; i++) {
|
||||
scriptAtIndex(i).setFetchedFromConsole(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user