Skip to content

Commit

Permalink
Test2
Browse files Browse the repository at this point in the history
  • Loading branch information
AKMaily committed Sep 20, 2024
1 parent 3527d13 commit 09c7bfb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/look_up_saves.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -44,6 +43,7 @@ inline std::string getSubdirectoriesInFolder(nlohmann::json language,
ImGui::Combo(appLanguage[Key::Known_Car], &selectedOption, vins,
static_cast<int>(subdirectories.size()));

ImGui::InputText(appLanguage[Key::Measurement], scantype, 255);
if (selectedOption == 0) {
ImGui::InputText("Fin/Vin", inputvin, 19,
ImGuiInputTextFlags_CharsUppercase |
Expand All @@ -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<int>(subdirectories.size()));

Expand All @@ -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);
}
}
Expand Down

0 comments on commit 09c7bfb

Please sign in to comment.