Remove redundant compiler workaround
This commit is contained in:
committed by
abcdefg30
parent
1c6c55092f
commit
79d1899426
@@ -185,10 +185,8 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
header.Get<LabelWidget>("LABEL").GetText = () => title;
|
||||
missionList.AddChild(header);
|
||||
|
||||
foreach (var p in previews)
|
||||
foreach (var preview in previews)
|
||||
{
|
||||
var preview = p;
|
||||
|
||||
var item = ScrollItemWidget.Setup(template,
|
||||
() => selectedMap != null && selectedMap.Uid == preview.Uid,
|
||||
() => SelectMap(preview),
|
||||
|
||||
@@ -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