fix: remove some unnecessary pops I missed

This commit is contained in:
goat 2023-03-26 13:07:26 +02:00
parent ca9f932213
commit 03a409306f
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B

View file

@ -125,7 +125,6 @@ internal sealed class SettingsEntry<T> : SettingsEntry
using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudGrey))
{
ImGuiHelpers.SafeTextWrapped(this.Description);
ImGui.PopStyleColor();
}
if (this.CheckValidity != null)
@ -138,7 +137,6 @@ internal sealed class SettingsEntry<T> : SettingsEntry
using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudRed))
{
ImGui.Text(validityMsg);
ImGui.PopStyleColor();
}
}
}
@ -154,7 +152,6 @@ internal sealed class SettingsEntry<T> : SettingsEntry
using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudRed))
{
ImGui.Text(warningMessage);
ImGui.PopStyleColor();
}
}
}