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
  • Loading branch information
KSP-TaxiService committed Feb 12, 2021
1 parent 721cf4f commit 098e329
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/CommNetConstellation/CommNetLayer/CNCCommNetHome.cs
Expand Up @@ -45,7 +45,7 @@ public class CNCCommNetHome : CommNetManagerAPI.CNMHomeComponent, IComparable<CN
public string stationName
{
get { return (this.OptionalName.Length == 0)? this.CommNetHome.nodeName : this.OptionalName; }
set { this.OptionalName = value; }
set { this.OptionalName = value; this.comm.name = this.comm.displayName = value; }
}

public override void Initialize(CommNetHome stockHome)
Expand Down Expand Up @@ -398,6 +398,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.CommNetHome.isKSC)
{
Expand Down

0 comments on commit 098e329

Please sign in to comment.