This commit is contained in:
2025-05-02 01:16:38 -05:00
parent 6f322cadb8
commit 74b82845b5
7 changed files with 33 additions and 23 deletions

View File

@@ -30,7 +30,7 @@ class ImguiModule : public Archimedes::Module {
void releaseContext(ImGuiContext* ctxt) {
if(ctxt == context && context != nullptr) {
if(--contextRefs == 0) {
app->stopModule(name);
app->emitEvent(new Archimedes::DoUnloadModuleEvent(name));
}
}
}