muffin v7.5.1

This commit is contained in:
alydev 2026-05-01 08:59:48 +10:00
parent a6481e7b9a
commit 965a736f84
59 changed files with 4112 additions and 5059 deletions

View file

@ -1,4 +1,3 @@
using System;
using Dalamud.Bindings.ImGui;
using Dalamud.Interface;
using Dalamud.Interface.Colors;
@ -44,8 +43,7 @@ internal sealed class OneTimeSetupWindow : LWindow
ImGui.Spacing();
if (allRequiredInstalled)
{
ColorDisposable val = ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.ParsedGreen, true);
try
using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.ParsedGreen))
{
if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Check, "Finish Setup"))
{
@ -55,29 +53,15 @@ internal sealed class OneTimeSetupWindow : LWindow
base.IsOpen = false;
}
}
finally
{
((IDisposable)val)?.Dispose();
}
}
else
{
DisabledDisposable val2 = ImRaii.Disabled();
try
using (ImRaii.Disabled())
{
ColorDisposable val = ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudRed, true);
try
using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudRed))
{
ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Check, "Missing required plugins");
}
finally
{
((IDisposable)val)?.Dispose();
}
}
finally
{
((IDisposable)val2)?.Dispose();
}
}
ImGui.SameLine();