diff --git a/src/look_up_saves.hpp b/src/look_up_saves.hpp index 6d6bc904..3d01b85c 100644 --- a/src/look_up_saves.hpp +++ b/src/look_up_saves.hpp @@ -34,7 +34,6 @@ inline std::string getSubdirectoriesInFolder(nlohmann::json language, vins[i] = strdup(subdirectories[i].c_str()); if (isTxtInptFieldsEmpty) { - ImGui::InputText(appLanguage[Key::Measurement], scantype, 255); const std::string newcar = appLanguage[Key::New_Car]; ImGui::Separator(); ImGui::NewLine(); @@ -44,6 +43,7 @@ inline std::string getSubdirectoriesInFolder(nlohmann::json language, ImGui::Combo(appLanguage[Key::Known_Car], &selectedOption, vins, static_cast(subdirectories.size())); + ImGui::InputText(appLanguage[Key::Measurement], scantype, 255); if (selectedOption == 0) { ImGui::InputText("Fin/Vin", inputvin, 19, ImGuiInputTextFlags_CharsUppercase | @@ -56,10 +56,6 @@ inline std::string getSubdirectoriesInFolder(nlohmann::json language, // Using vins (char* array) with ImGui }else { - ImGui::InputText(appLanguage[Key::Measurement], scantype, 255); - ImGui::Separator(); - ImGui::Text(appLanguage[Key::Additional_Information]); - ImGui::NewLine(); ImGui::Combo(appLanguage[Key::Known_Car], &selectedOption, vins, static_cast(subdirectories.size())); @@ -70,6 +66,10 @@ inline std::string getSubdirectoriesInFolder(nlohmann::json language, static char VIN[18]; const std::string newcar = appLanguage[Key::New_Car]; + ImGui::Separator(); + ImGui::Text(appLanguage[Key::Additional_Information]); + ImGui::NewLine(); + ImGui::InputText(appLanguage[Key::Measurement], scantype, 255); ImGui::InputText(appLanguage[Key::Mileage], mileage, 10); } }