From 99c9fcb66d161c445fded2db2a29940a96a08ef8 Mon Sep 17 00:00:00 2001 From: pointfeev Date: Tue, 8 Mar 2022 20:42:29 -0500 Subject: [PATCH] context menu image awaits --- CreamInstaller/Components/ContextMenuItem.cs | 4 ++-- CreamInstaller/GlobalSuppressions.cs | 7 +------ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/CreamInstaller/Components/ContextMenuItem.cs b/CreamInstaller/Components/ContextMenuItem.cs index 03a49f0..f22506a 100644 --- a/CreamInstaller/Components/ContextMenuItem.cs +++ b/CreamInstaller/Components/ContextMenuItem.cs @@ -62,7 +62,7 @@ internal class ContextMenuItem : ToolStripMenuItem item.Image = image; } } - }); + }).ConfigureAwait(false); private static async Task TryImageIdentifierInfo(ContextMenuItem item, (string id, string iconUrl, bool sub) imageIdentifierInfo, Action onFail = null) => await Task.Run(async () => { @@ -80,7 +80,7 @@ internal class ContextMenuItem : ToolStripMenuItem else if (onFail is not null) onFail(); } - }); + }).ConfigureAwait(false); private readonly EventHandler OnClickEvent; protected override void OnClick(EventArgs e) diff --git a/CreamInstaller/GlobalSuppressions.cs b/CreamInstaller/GlobalSuppressions.cs index 97f77d5..4e35a55 100644 --- a/CreamInstaller/GlobalSuppressions.cs +++ b/CreamInstaller/GlobalSuppressions.cs @@ -1,9 +1,4 @@ -// This file is used by Code Analysis to maintain SuppressMessage -// attributes that are applied to this project. -// Project-level suppressions either have no target or are given -// a specific target and scoped to a namespace, type, member, etc. - -using System.Diagnostics.CodeAnalysis; +using System.Diagnostics.CodeAnalysis; [assembly: SuppressMessage("CodeQuality", "IDE0076:Invalid global 'SuppressMessageAttribute'")] [assembly: SuppressMessage("CodeQuality", "IDE0079:Remove unnecessary suppression")]