fix ImguiEmbed

This commit is contained in:
2025-04-10 12:00:08 -05:00
parent 6bc3593f22
commit 10b8dd34ca
3 changed files with 8 additions and 7 deletions

View File

@@ -17,8 +17,12 @@ void ImguiEmbed::run() {
}
toClose.clear();
for(std::string m : toOpen) {
load(m);
for(auto m : toOpen) {
if(std::holds_alternative<std::string>(m.second)) {
load(std::get<std::string>(m.second))->onLoad();
} else {
load(std::get<Archimedes::Module*>(m.second))->onLoad();
}
}
toOpen.clear();
}