Skip to content

Commit

Permalink
Fix bug of blank ground station name when hovering over signal streng…
Browse files Browse the repository at this point in the history
…th bars (from branch commnet-manager-port-2)
  • Loading branch information
KSP-TaxiService committed Apr 4, 2021
1 parent ee2d63b commit 147de2f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/CommNetConstellation/CommNetLayer/CNCCommNetHome.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class CNCCommNetHome : CommNetHome, IComparable<CNCCommNetHome>
public string stationName
{
get { return (this.OptionalName.Length == 0)? this.displaynodeName : this.OptionalName; }
set { this.OptionalName = value; }
set { this.OptionalName = value; this.comm.name = this.comm.displayName = value; }
}

/// <summary>
Expand Down Expand Up @@ -402,6 +402,11 @@ protected void refresh()
return;
}

if(this.comm != null && (this.comm.displayName.Length < 1 || this.comm.name.Length < 1))
{
this.comm.name = this.comm.displayName = stationName; //required for visual sequence of connected nodes
}

// Obtain Tech Level of Tracking Station in KCS
if (this.isKSC)
{
Expand Down

0 comments on commit 147de2f

Please sign in to comment.