[studio] Fix crash in NewMenu
This commit is contained in:
parent
a95aae2b68
commit
47858ef619
@ -72,7 +72,6 @@ void NewMenu::drawNewItemName(turbine::Context *ctx) noexcept {
|
|||||||
ImGui::InputText("Name", m_itemName.data(), m_itemName.cap());
|
ImGui::InputText("Name", m_itemName.data(), m_itemName.cap());
|
||||||
}
|
}
|
||||||
drawLastPageButtons(ctx);
|
drawLastPageButtons(ctx);
|
||||||
ImGui::EndPopup();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@ void Popup::drawWindow(turbine::Context *ctx, bool *open, const std::function<vo
|
|||||||
constexpr auto modalFlags = ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoResize;
|
constexpr auto modalFlags = ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoResize;
|
||||||
if (ImGui::BeginPopupModal(m_title.c_str(), open, modalFlags)) {
|
if (ImGui::BeginPopupModal(m_title.c_str(), open, modalFlags)) {
|
||||||
drawContents();
|
drawContents();
|
||||||
|
ImGui::EndPopup();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user