Fix IDE0028, IDE0300, IDE0301, IDE0302, IDE0303, IDE0304.
Silence IDE0305.
This commit is contained in:
committed by
Pavel Penev
parent
0740991c12
commit
79454d8fd2
@@ -63,7 +63,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
readonly Widget panel;
|
||||
readonly ScrollPanelWidget gameList;
|
||||
readonly TextFieldWidget saveTextField;
|
||||
readonly List<string> games = new();
|
||||
readonly List<string> games = [];
|
||||
readonly Action onStart;
|
||||
readonly Action onExit;
|
||||
readonly ModData modData;
|
||||
@@ -173,7 +173,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
ConfirmationDialogs.ButtonPrompt(modData,
|
||||
title: DeleteSaveTitle,
|
||||
text: DeleteSavePrompt,
|
||||
textArguments: new object[] { "save", Path.GetFileNameWithoutExtension(selectedSave) },
|
||||
textArguments: ["save", Path.GetFileNameWithoutExtension(selectedSave)],
|
||||
onConfirm: () =>
|
||||
{
|
||||
Delete(selectedSave);
|
||||
@@ -197,7 +197,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
ConfirmationDialogs.ButtonPrompt(modData,
|
||||
title: DeleteAllSavesTitle,
|
||||
text: DeleteAllSavesPrompt,
|
||||
textArguments: new object[] { "count", games.Count },
|
||||
textArguments: ["count", games.Count],
|
||||
onConfirm: () =>
|
||||
{
|
||||
foreach (var s in games.ToList())
|
||||
@@ -373,7 +373,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
ConfirmationDialogs.ButtonPrompt(modData,
|
||||
title: OverwriteSaveTitle,
|
||||
text: OverwriteSavePrompt,
|
||||
textArguments: new object[] { "file", saveTextField.Text },
|
||||
textArguments: ["file", saveTextField.Text],
|
||||
onConfirm: Inner,
|
||||
confirmText: OverwriteSaveAccept,
|
||||
onCancel: () => { });
|
||||
|
||||
Reference in New Issue
Block a user