From 5c4550762b67bdf013804f50c20a69e2a1f01570 Mon Sep 17 00:00:00 2001 From: goat <16760685+goaaats@users.noreply.github.com> Date: Tue, 10 Aug 2021 01:04:10 +0200 Subject: [PATCH] cleanup --- Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs b/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs index e386109da..870251645 100644 --- a/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs +++ b/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Collections.Immutable; using System.ComponentModel; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; @@ -1124,7 +1123,7 @@ namespace Dalamud.Interface.Internal.Windows { if (!this.pluginImagesMap.TryGetValue(manifest.InternalName, out var images)) { - this.DownloadPluginImagesAsync(manifest); + Task.Run(() => this.DownloadPluginImagesAsync(manifest)); return false; } @@ -1168,8 +1167,7 @@ namespace Dalamud.Interface.Internal.Windows ImGui.PushStyleVar(ImGuiStyleVar.FramePadding, Vector2.Zero); - if (ImGui.ImageButton(image.ImGuiHandle, - ImGuiHelpers.ScaledVector2(image.Width / thumbFactor, image.Height / thumbFactor))) + if (ImGui.ImageButton(image.ImGuiHandle, ImGuiHelpers.ScaledVector2(image.Width / thumbFactor, image.Height / thumbFactor))) ImGui.OpenPopup(popupId); ImGui.PopStyleVar();