kopia lustrzana https://github.com/AlexandreRouma/SDRPlusPlus
Fixed file select length
rodzic
3541b8a0dd
commit
096c5edbd4
|
@ -44,6 +44,7 @@ bool FileSelect::render(std::string id) {
|
||||||
if (!lastPathValid) {
|
if (!lastPathValid) {
|
||||||
ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(1.0f, 0.0f, 0.0f, 1.0f));
|
ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(1.0f, 0.0f, 0.0f, 1.0f));
|
||||||
}
|
}
|
||||||
|
ImGui::SetNextItemWidth(menuColumnWidth);
|
||||||
if (ImGui::InputText(id.c_str(), strPath, 2047)) {
|
if (ImGui::InputText(id.c_str(), strPath, 2047)) {
|
||||||
path = std::string(strPath);
|
path = std::string(strPath);
|
||||||
std::string expandedPath = expandString(strPath);
|
std::string expandedPath = expandString(strPath);
|
||||||
|
|
|
@ -42,6 +42,7 @@ bool FolderSelect::render(std::string id) {
|
||||||
if (!lastPathValid) {
|
if (!lastPathValid) {
|
||||||
ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(1.0f, 0.0f, 0.0f, 1.0f));
|
ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(1.0f, 0.0f, 0.0f, 1.0f));
|
||||||
}
|
}
|
||||||
|
ImGui::SetNextItemWidth(menuColumnWidth);
|
||||||
if (ImGui::InputText(id.c_str(), strPath, 2047)) {
|
if (ImGui::InputText(id.c_str(), strPath, 2047)) {
|
||||||
path = std::string(strPath);
|
path = std::string(strPath);
|
||||||
std::string expandedPath = expandString(strPath);
|
std::string expandedPath = expandString(strPath);
|
||||||
|
|
Ładowanie…
Reference in New Issue