Fix IDE0090

This commit is contained in:
RoosterDragon
2023-04-05 19:34:12 +01:00
committed by Pavel Penev
parent 164abfdae1
commit 8a285f9b19
385 changed files with 790 additions and 794 deletions

View File

@@ -32,8 +32,8 @@ namespace OpenRA.Mods.Common.Widgets.Logic
bool isHotkeyDefault;
string currentContext = "Any";
readonly HashSet<string> contexts = new HashSet<string>() { "Any" };
readonly Dictionary<string, HashSet<string>> hotkeyGroups = new Dictionary<string, HashSet<string>>();
readonly HashSet<string> contexts = new() { "Any" };
readonly Dictionary<string, HashSet<string>> hotkeyGroups = new();
TextFieldWidget filterInput;
Widget headerTemplate;

View File

@@ -52,14 +52,14 @@ namespace OpenRA.Mods.Common.Widgets.Logic
[TranslationReference]
const string ResetCancel = "dialog-settings-reset.cancel";
readonly Dictionary<string, Func<bool>> leavePanelActions = new Dictionary<string, Func<bool>>();
readonly Dictionary<string, Action> resetPanelActions = new Dictionary<string, Action>();
readonly Dictionary<string, Func<bool>> leavePanelActions = new();
readonly Dictionary<string, Action> resetPanelActions = new();
readonly Widget panelContainer, tabContainer;
readonly ButtonWidget tabTemplate;
readonly int2 buttonStride;
readonly List<ButtonWidget> buttons = new List<ButtonWidget>();
readonly Dictionary<string, string> panels = new Dictionary<string, string>();
readonly List<ButtonWidget> buttons = new();
readonly Dictionary<string, string> panels = new();
string activePanel;
bool needsRestart = false;