Fixing destruction

This commit is contained in:
Dynamitos
2024-07-18 11:45:56 +02:00
parent 67c4ce2f7a
commit 3b6eb3ebcc
31 changed files with 173 additions and 82 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ class WindowManager {
OWindow addWindow(Gfx::PGraphics graphics, const WindowCreateInfo& createInfo);
void render();
void notifyWindowClosed(PWindow window);
bool isActive() const { return windows.size(); }
bool isActive() const { return getGlobals().running && windows.size(); }
private:
Array<PWindow> windows;