Skip to content

Commit

Permalink
ConfigureAwait Pass
Browse files Browse the repository at this point in the history
  • Loading branch information
DelnarErsike committed May 8, 2024
1 parent 4938050 commit 010db8f
Show file tree
Hide file tree
Showing 5 changed files with 492 additions and 492 deletions.
20 changes: 10 additions & 10 deletions Chummer/Backend/Characters/Character.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6363,7 +6363,7 @@ await LanguageManager
"MessageTitle_IncorrectGameVersion",
token: token).ConfigureAwait(false),
MessageBoxButtons.YesNo, MessageBoxIcon.Error,
token: token);
token: token).ConfigureAwait(false);
return false;
}

Expand Down Expand Up @@ -6789,7 +6789,7 @@ CharacterSettings objHashCodeMatchSettings
"MessageTitle_CharacterOptions_CannotLoadSetting",
token: token).ConfigureAwait(false),
MessageBoxButtons.YesNo, MessageBoxIcon.Error,
token: token)) == DialogResult.No)
token: token).ConfigureAwait(false)) == DialogResult.No)
{
return false;
}
Expand Down Expand Up @@ -6898,7 +6898,7 @@ int intLoopScore
"MessageTitle_CharacterOptions_DesyncBuildMethod",
token: token).ConfigureAwait(false),
MessageBoxButtons.YesNo, MessageBoxIcon.Error,
token: token)) == DialogResult.No)
token: token).ConfigureAwait(false)) == DialogResult.No)
{
return false;
}
Expand Down Expand Up @@ -7020,7 +7020,7 @@ IReadOnlyList<CustomDataDirectoryInfo> lstProspectiveInfos
"MessageTitle_CharacterOptions_DesyncBooksOrCustomData",
token: token).ConfigureAwait(false),
MessageBoxButtons.YesNoCancel, MessageBoxIcon.Warning,
token: token);
token: token).ConfigureAwait(false);
if (eShowBPResult == DialogResult.Cancel)
{
return false;
Expand Down Expand Up @@ -7069,7 +7069,7 @@ IReadOnlyList<CustomDataDirectoryInfo> lstProspectiveInfos
"MessageTitle_CharacterOptions_DesyncFromHashCode",
token: token).ConfigureAwait(false),
MessageBoxButtons.YesNoCancel, MessageBoxIcon.Warning,
token: token);
token: token).ConfigureAwait(false);
if (eShowBPResult == DialogResult.Cancel)
{
return false;
Expand Down Expand Up @@ -7518,7 +7518,7 @@ ConcurrentBag<string> lstInternalIdsNeedingReapplyImprovements
await LanguageManager.GetStringAsync(
"MessageTitle_OrphanedImprovements", token: token)
.ConfigureAwait(false),
MessageBoxButtons.YesNo, MessageBoxIcon.Error, token: token) ==
MessageBoxButtons.YesNo, MessageBoxIcon.Error, token: token).ConfigureAwait(false) ==
DialogResult.Yes)
{
blnRemoveImprovements = true;
Expand Down Expand Up @@ -44178,7 +44178,7 @@ await LanguageManager.GetStringAsync("Message_FailedLoad", token: token)
ex.Message),
await LanguageManager.GetStringAsync("MessageTitle_FailedLoad", token: token)
.ConfigureAwait(false),
MessageBoxButtons.OK, MessageBoxIcon.Error, token: token);
MessageBoxButtons.OK, MessageBoxIcon.Error, token: token).ConfigureAwait(false);
}
return false;
}
Expand Down Expand Up @@ -44212,7 +44212,7 @@ await LanguageManager.GetStringAsync("Message_FailedLoad", token: token)
ex.Message),
await LanguageManager.GetStringAsync("MessageTitle_FailedLoad", token: token)
.ConfigureAwait(false),
MessageBoxButtons.OK, MessageBoxIcon.Error, token: token);
MessageBoxButtons.OK, MessageBoxIcon.Error, token: token).ConfigureAwait(false);
}
return false;
}
Expand Down Expand Up @@ -44246,7 +44246,7 @@ await LanguageManager.GetStringAsync("Message_FailedLoad", token: token)
ex.Message),
await LanguageManager.GetStringAsync("MessageTitle_FailedLoad", token: token)
.ConfigureAwait(false),
MessageBoxButtons.OK, MessageBoxIcon.Error, token: token);
MessageBoxButtons.OK, MessageBoxIcon.Error, token: token).ConfigureAwait(false);
}

return false;
Expand Down Expand Up @@ -44668,7 +44668,7 @@ await LanguageManager
await LanguageManager.GetStringAsync(
"Message_MissingGameplayOption_Title", token: token)
.ConfigureAwait(false),
MessageBoxButtons.OKCancel, MessageBoxIcon.Error, token: token)
MessageBoxButtons.OKCancel, MessageBoxIcon.Error, token: token).ConfigureAwait(false)
== DialogResult.OK)
{
using (ThreadSafeForm<SelectBuildMethod> frmPickBP =
Expand Down
12 changes: 6 additions & 6 deletions Chummer/Backend/Static/SelectionShared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ await LanguageManager.GetStringAsync("Message_SelectGeneric_ChargenRestriction",
strLocalName),
string.Format(await LanguageManager.GetStringAsync("MessageTitle_SelectGeneric_Restriction", token: token)
.ConfigureAwait(false), strLocalName),
MessageBoxButtons.OK, MessageBoxIcon.Information, token: token);
MessageBoxButtons.OK, MessageBoxIcon.Information, token: token).ConfigureAwait(false);
}
}

Expand Down Expand Up @@ -196,7 +196,7 @@ await LanguageManager.GetStringAsync("Message_SelectGeneric_CareerOnlyRestrictio
strLocalName),
string.Format(await LanguageManager.GetStringAsync("MessageTitle_SelectGeneric_Restriction", token: token)
.ConfigureAwait(false), strLocalName),
MessageBoxButtons.OK, MessageBoxIcon.Information, token: token);
MessageBoxButtons.OK, MessageBoxIcon.Information, token: token).ConfigureAwait(false);
}
}

Expand Down Expand Up @@ -229,7 +229,7 @@ await LanguageManager.GetStringAsync("Message_SelectGeneric_PriorityRestriction"
strLocalName),
string.Format(await LanguageManager.GetStringAsync("MessageTitle_SelectGeneric_Restriction", token: token)
.ConfigureAwait(false), strLocalName),
MessageBoxButtons.OK, MessageBoxIcon.Information, token: token);
MessageBoxButtons.OK, MessageBoxIcon.Information, token: token).ConfigureAwait(false);
}
}

Expand Down Expand Up @@ -528,7 +528,7 @@ await LanguageManager.GetStringAsync("Message_SelectGeneric_Limit", token: token
strLocalName, intLimit == 0 ? 1 : intLimit),
string.Format(await LanguageManager.GetStringAsync("MessageTitle_SelectGeneric_Limit", token: token)
.ConfigureAwait(false), strLocalName),
MessageBoxButtons.OK, MessageBoxIcon.Information, token: token);
MessageBoxButtons.OK, MessageBoxIcon.Information, token: token).ConfigureAwait(false);
}
}

Expand Down Expand Up @@ -578,7 +578,7 @@ await LanguageManager.GetStringAsync("Message_SelectGeneric_Restriction", token:
strLocalName) + strName,
string.Format(await LanguageManager.GetStringAsync("MessageTitle_SelectGeneric_Restriction", token: token)
.ConfigureAwait(false), strLocalName),
MessageBoxButtons.OK, MessageBoxIcon.Information, token: token);
MessageBoxButtons.OK, MessageBoxIcon.Information, token: token).ConfigureAwait(false);
}
}

Expand Down Expand Up @@ -723,7 +723,7 @@ await LanguageManager.GetStringAsync("Message_SelectGeneric_Restriction", token:
strLocalName) + sbdRequirement,
string.Format(await LanguageManager.GetStringAsync("MessageTitle_SelectGeneric_Restriction", token: token)
.ConfigureAwait(false), strLocalName),
MessageBoxButtons.OK, MessageBoxIcon.Information, token: token);
MessageBoxButtons.OK, MessageBoxIcon.Information, token: token).ConfigureAwait(false);
}
}

Expand Down
6 changes: 3 additions & 3 deletions Chummer/Backend/Static/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ private static async Task<bool> SafeDeleteDirectoryCoreAsync(bool blnSync, strin
"Message_Prompt_Delete_Existing_File", token: token)
.ConfigureAwait(false), strPath),
buttons: MessageBoxButtons.YesNo, icon: MessageBoxIcon.Warning,
token: token) !=
token: token).ConfigureAwait(false) !=
DialogResult.Yes)
return false;
}
Expand Down Expand Up @@ -662,7 +662,7 @@ private static async Task<bool> SafeDeleteDirectoryCoreAsync(bool blnSync, strin
await Program.ShowScrollableMessageBoxAsync(
await LanguageManager
.GetStringAsync("Message_Insufficient_Permissions_Warning", token: token)
.ConfigureAwait(false), token: token);
.ConfigureAwait(false), token: token).ConfigureAwait(false);
}
}

Expand Down Expand Up @@ -774,7 +774,7 @@ private static async Task<bool> SafeClearDirectoryCoreAsync(bool blnSync, string
"Message_Prompt_Delete_Existing_File", token: token)
.ConfigureAwait(false), strPath),
buttons: MessageBoxButtons.YesNo, icon: MessageBoxIcon.Warning,
token: token) !=
token: token).ConfigureAwait(false) !=
DialogResult.Yes)
return false;
}
Expand Down

0 comments on commit 010db8f

Please sign in to comment.