Fix IDE0074
This commit is contained in:
committed by
Pavel Penev
parent
cbd0583289
commit
bd2b3d9793
@@ -155,8 +155,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
{
|
||||
var panel = panelContainer.Get(panelID);
|
||||
|
||||
if (activePanel == null)
|
||||
activePanel = panelID;
|
||||
activePanel ??= panelID;
|
||||
|
||||
panel.IsVisible = () => activePanel == panelID;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user