[studio] Fix new project menu to return an appropriately sized string for name
This commit is contained in:
parent
daab4dc4f5
commit
db953dd0d1
@ -50,7 +50,7 @@ void NewProject::draw(studio::StudioContext &ctx) noexcept {
|
|||||||
|
|
||||||
void NewProject::drawNewProjectName(studio::StudioContext &sctx) noexcept {
|
void NewProject::drawNewProjectName(studio::StudioContext &sctx) noexcept {
|
||||||
drawWindow(sctx.tctx, &m_open, [this, &sctx] {
|
drawWindow(sctx.tctx, &m_open, [this, &sctx] {
|
||||||
ImGui::InputText("Name", m_projectName.data(), m_projectName.cap());
|
ig::InputText("Name", m_projectName);
|
||||||
ImGui::Text("Path: %s", m_projectPath.c_str());
|
ImGui::Text("Path: %s", m_projectPath.c_str());
|
||||||
if (ImGui::Button("Browse")) {
|
if (ImGui::Button("Browse")) {
|
||||||
oxLogError(studio::chooseDirectory().moveTo(m_projectPath));
|
oxLogError(studio::chooseDirectory().moveTo(m_projectPath));
|
||||||
|
Loading…
Reference in New Issue
Block a user