This commit is contained in:
goat 2021-08-10 01:04:10 +02:00
parent 7cd8c9595a
commit 5c4550762b
No known key found for this signature in database
GPG key ID: F18F057873895461

View file

@ -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();