fixed station records console item list selection (#20369)

This commit is contained in:
Artur 2023-09-22 22:57:05 +03:00 committed by Debug
parent 882e2abeb0
commit 481b2c00c6
2 changed files with 4 additions and 4 deletions

View File

@ -24,9 +24,9 @@ public sealed class GeneralStationRecordConsoleBoundUserInterface : BoundUserInt
_window.OpenCentered();
}
private void OnKeySelected(StationRecordKey? key)
private void OnKeySelected((NetEntity, uint)? key)
{
SendMessage(new SelectGeneralStationRecord(EntMan.System<SharedStationRecordsSystem>().Convert(key)));
SendMessage(new SelectGeneralStationRecord(key));
}
private void OnFiltersChanged(

View File

@ -11,7 +11,7 @@ namespace Content.Client.StationRecords;
[GenerateTypedNameReferences]
public sealed partial class GeneralStationRecordConsoleWindow : DefaultWindow
{
public Action<StationRecordKey?>? OnKeySelected;
public Action<(NetEntity, uint)?>? OnKeySelected;
public Action<GeneralStationRecordFilterType, string>? OnFiltersChanged;
@ -32,7 +32,7 @@ public sealed partial class GeneralStationRecordConsoleWindow : DefaultWindow
RecordListing.OnItemSelected += args =>
{
if (_isPopulating || RecordListing[args.ItemIndex].Metadata is not StationRecordKey cast)
if (_isPopulating || RecordListing[args.ItemIndex].Metadata is not ValueTuple<NetEntity, uint> cast)
{
return;
}