Merge pull request #1202 from PepperDash/feature-2.0.0/display-feedback-fix

Set CurrentSourceKey correctly & in the correct order
This commit is contained in:
Nick Genovese
2024-10-30 11:32:29 -04:00
committed by GitHub

View File

@@ -175,6 +175,7 @@ namespace PepperDash.Essentials.Core.Routing
}); });
var source = sourceListItem.Value; var source = sourceListItem.Value;
var sourceKey = sourceListItem.Key;
if (source == null) if (source == null)
{ {
@@ -186,15 +187,16 @@ namespace PepperDash.Essentials.Core.Routing
Name = sourceTieLine.SourcePort.Key, Name = sourceTieLine.SourcePort.Key,
}; };
destination.CurrentSourceInfo = tempSourceListItem; ;
destination.CurrentSourceInfoKey = "$transient"; destination.CurrentSourceInfoKey = "$transient";
destination.CurrentSourceInfo = tempSourceListItem;
return; return;
} }
// Debug.LogMessage(Serilog.Events.LogEventLevel.Verbose, "Got Source {source}", this, source); //Debug.LogMessage(Serilog.Events.LogEventLevel.Verbose, "Got Source {@source} with key {sourceKey}", this, source, sourceKey);
destination.CurrentSourceInfoKey = sourceKey;
destination.CurrentSourceInfo = source; destination.CurrentSourceInfo = source;
destination.CurrentSourceInfoKey = source.SourceKey;
} }
private TieLine GetRootTieLine(TieLine tieLine) private TieLine GetRootTieLine(TieLine tieLine)