[studio] Make tabs not draw while closing
This commit is contained in:
parent
e2f2a17315
commit
48603ea2c5
@ -225,7 +225,9 @@ void StudioUI::drawTabs() noexcept {
|
|||||||
if (m_activeEditorOnLastDraw != e.get()) [[unlikely]] {
|
if (m_activeEditorOnLastDraw != e.get()) [[unlikely]] {
|
||||||
m_activeEditor->onActivated();
|
m_activeEditor->onActivated();
|
||||||
}
|
}
|
||||||
|
if (open) [[likely]] {
|
||||||
e->draw(m_sctx);
|
e->draw(m_sctx);
|
||||||
|
}
|
||||||
m_activeEditorOnLastDraw = e.get();
|
m_activeEditorOnLastDraw = e.get();
|
||||||
}
|
}
|
||||||
ImGui::EndTabItem();
|
ImGui::EndTabItem();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user