From aacc6f007f33df4ce9c8ee47807073b584fe7d6d Mon Sep 17 00:00:00 2001 From: Ottermandias Date: Sun, 10 Oct 2021 15:56:04 +0200 Subject: [PATCH] Small fix for deleting fixed designs. --- Glamourer/Gui/InterfaceFixedDesigns.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Glamourer/Gui/InterfaceFixedDesigns.cs b/Glamourer/Gui/InterfaceFixedDesigns.cs index 6348686..672507b 100644 --- a/Glamourer/Gui/InterfaceFixedDesigns.cs +++ b/Glamourer/Gui/InterfaceFixedDesigns.cs @@ -61,8 +61,9 @@ namespace Glamourer.Gui raii.PushFont(UiBuilder.IconFont); if (ImGui.Button($"{FontAwesomeIcon.Trash.ToIconChar()}##{i}")) { - _fullPathCache.RemoveAt(i); + _fullPathCache.RemoveAt(i--); _plugin.FixedDesigns.Remove(name); + continue; } var tmp = name.Enabled;