mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/code] Fix circular importation in the variable box
Scenario (crashed only on the calculator): script1.py from script2 import * a=1 script2.py from script1 import * b=2
This commit is contained in:
@@ -31,7 +31,7 @@ const char * ScriptStore::contentOfScript(const char * name, bool markAsFetched)
|
||||
return nullptr;
|
||||
}
|
||||
if (markAsFetched) {
|
||||
script.setContentFetchedFromConsole(true);
|
||||
script.setContentFetchedFromConsole();
|
||||
}
|
||||
return script.content();
|
||||
}
|
||||
@@ -40,7 +40,7 @@ void ScriptStore::clearFetchInformation() {
|
||||
// TODO optimize fetches
|
||||
const int scriptsCount = numberOfScripts();
|
||||
for (int i = 0; i < scriptsCount; i++) {
|
||||
scriptAtIndex(i).setContentFetchedFromConsole(false);
|
||||
scriptAtIndex(i).resetContentFetchedStatus();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user