Fix IDE0053
This commit is contained in:
committed by
Pavel Penev
parent
37afd6094e
commit
939f715e3c
@@ -37,7 +37,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
{
|
||||
var tab = tabContainer.Get<ButtonWidget>(buttonId);
|
||||
tab.IsHighlighted = () => menuType == tabType;
|
||||
tab.OnClick = () => { menuType = tabType; };
|
||||
tab.OnClick = () => menuType = tabType;
|
||||
|
||||
var container = widget.Parent.Get<ContainerWidget>(tabId);
|
||||
container.IsVisible = () => menuType == tabType;
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
{
|
||||
var item = ScrollItemWidget.Setup(template,
|
||||
() => tilesetDropDown.Text == option,
|
||||
() => { tilesetDropDown.Text = option; });
|
||||
() => tilesetDropDown.Text = option);
|
||||
item.Get<LabelWidget>("LABEL").GetText = () => option;
|
||||
return item;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user