fix: auto update, esp snapline not changing color

This commit is contained in:
2024-06-13 13:45:12 +02:00
parent 1b157d0947
commit f9ce069efd
2 changed files with 3 additions and 2 deletions

View File

@@ -75,7 +75,7 @@ void DrawVisualsTab() {
ImGui::OpenPopup("playersnpop"); ImGui::OpenPopup("playersnpop");
} }
if (ImGui::BeginPopup("playersnpop")) { if (ImGui::BeginPopup("playersnpop")) {
ImGui::ColorPicker4("Player snaplines color", (float*)&settings::flashlight_color); ImGui::ColorPicker4("Player snaplines color", (float*)&settings::player_snaplines_color);
ImGui::EndPopup(); ImGui::EndPopup();
} }

View File

@@ -60,8 +60,9 @@ void VersionControl::CheckForUpdate()
if (data.find("tag_name") != data.end() && data["tag_name"].is_string()) { if (data.find("tag_name") != data.end() && data["tag_name"].is_string()) {
std::string latestTagName = data["tag_name"]; std::string latestTagName = data["tag_name"];
std::string latestName = data["name"];
if (strcmp(latestTagName.c_str(), current_version_tag) == 0) { if (strcmp(latestTagName.c_str(), current_version_tag) == 0 || latestName.find("Auto") != std::string::npos) { //TOFIX
SetIsUpToDate(true); SetIsUpToDate(true);
} }
else { else {