Fix IDE0042

This commit is contained in:
RoosterDragon
2023-02-19 12:17:36 +00:00
committed by Gustas
parent 5b70d344cc
commit 555aac3f64
12 changed files with 43 additions and 44 deletions

View File

@@ -69,10 +69,10 @@ namespace OpenRA.Mods.Common.Widgets.Logic
var template = sysInfoData.Get<LabelWidget>("DATA_TEMPLATE");
sysInfoData.RemoveChildren();
foreach (var info in GetSystemInformation().Values)
foreach (var (name, value) in GetSystemInformation().Values)
{
var label = template.Clone() as LabelWidget;
var text = info.Label + ": " + info.Value;
var text = name + ": " + value;
label.GetText = () => text;
sysInfoData.AddChild(label);
}