Remove redundant compiler workaround
This commit is contained in:
committed by
abcdefg30
parent
1c6c55092f
commit
79d1899426
@@ -132,9 +132,8 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
currentSong = musicPlaylist.CurrentSong();
|
||||
|
||||
musicList.RemoveChildren();
|
||||
foreach (var s in music)
|
||||
foreach (var song in music)
|
||||
{
|
||||
var song = s;
|
||||
var item = ScrollItemWidget.Setup(song.Filename, itemTemplate, () => currentSong == song, () => { currentSong = song; Play(); }, () => { });
|
||||
item.Get<LabelWidget>("TITLE").GetText = () => song.Title;
|
||||
item.Get<LabelWidget>("LENGTH").GetText = () => SongLengthLabel(song);
|
||||
|
||||
Reference in New Issue
Block a user