Fixed file select length

pull/66/head
Ryzerth 2021-02-10 22:47:13 +01:00
rodzic 3541b8a0dd
commit 096c5edbd4
2 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -44,6 +44,7 @@ bool FileSelect::render(std::string id) {
if (!lastPathValid) {
ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(1.0f, 0.0f, 0.0f, 1.0f));
}
ImGui::SetNextItemWidth(menuColumnWidth);
if (ImGui::InputText(id.c_str(), strPath, 2047)) {
path = std::string(strPath);
std::string expandedPath = expandString(strPath);

Wyświetl plik

@ -42,6 +42,7 @@ bool FolderSelect::render(std::string id) {
if (!lastPathValid) {
ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(1.0f, 0.0f, 0.0f, 1.0f));
}
ImGui::SetNextItemWidth(menuColumnWidth);
if (ImGui::InputText(id.c_str(), strPath, 2047)) {
path = std::string(strPath);
std::string expandedPath = expandString(strPath);