[studio] Fix new project menu to return an appropriately sized string for name
This commit is contained in:
		| @@ -50,7 +50,7 @@ void NewProject::draw(studio::StudioContext &ctx) noexcept { | ||||
|  | ||||
| void NewProject::drawNewProjectName(studio::StudioContext &sctx) noexcept { | ||||
| 	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()); | ||||
| 		if (ImGui::Button("Browse")) { | ||||
| 			oxLogError(studio::chooseDirectory().moveTo(m_projectPath)); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user