diff --git a/src/olympic/studio/applib/src/studioapp.cpp b/src/olympic/studio/applib/src/studioapp.cpp index 6cf063e3..05d4542d 100644 --- a/src/olympic/studio/applib/src/studioapp.cpp +++ b/src/olympic/studio/applib/src/studioapp.cpp @@ -225,7 +225,9 @@ void StudioUI::drawTabs() noexcept { if (m_activeEditorOnLastDraw != e.get()) [[unlikely]] { m_activeEditor->onActivated(); } - e->draw(m_sctx); + if (open) [[likely]] { + e->draw(m_sctx); + } m_activeEditorOnLastDraw = e.get(); } ImGui::EndTabItem();