instrument menu now displays the instrument name (#2840)

Co-authored-by: Radrark <null>
This commit is contained in:
Radrark
2020-12-26 19:30:37 -03:00
committed by GitHub
parent 24d1c967b6
commit 3aa2ffcda2

View File

@@ -35,12 +35,13 @@ namespace Content.Client.Instruments
public InstrumentMenu(InstrumentBoundUserInterface owner)
{
IoCManager.InjectDependencies(this);
Title = Loc.GetString("Instrument");
_owner = owner;
_owner.Instrument.OnMidiPlaybackEnded += InstrumentOnMidiPlaybackEnded;
Title = _owner.Instrument.Owner.Name;
var margin = new MarginContainer()
{
SizeFlagsVertical = SizeFlags.FillExpand,