Skip to content

Commit

Permalink
Merge pull request bassmaster187#1396 from Adminius/patch-13
Browse files Browse the repository at this point in the history
don't delete car name if new name is null/empty
  • Loading branch information
bassmaster187 authored Dec 7, 2024
2 parents 5468ad4 + 9e8ae7a commit ea041db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TeslaLogger/WebHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1939,7 +1939,7 @@ public string GetVehicles()
System.Diagnostics.Debug.WriteLine(DateTime.Now.ToString() + " : " + OnlineState);

string display_name = r2["display_name"].ToString();
if (car.DisplayName != display_name)
if (!string.IsNullOrEmpty(display_name) && car.DisplayName != display_name)
{
car.DisplayName = display_name;
Log("WriteCarSettings -> Display_Name");
Expand Down Expand Up @@ -5875,4 +5875,4 @@ class Account
public string display_name;
public bool fleetAPI;
}
}
}

0 comments on commit ea041db

Please sign in to comment.