[studio] Make tabs not draw while closing

This commit is contained in:
Gary Talent 2025-01-23 21:03:10 -06:00
parent e2f2a17315
commit 48603ea2c5

View File

@ -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();