mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-11-10 12:47:40 +01:00
Fixed file select length
This commit is contained in:
parent
3541b8a0dd
commit
096c5edbd4
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user