From a501d972520ce3f0a9118039e6ae0601c4c79f41 Mon Sep 17 00:00:00 2001 From: Ottermandias Date: Fri, 1 Mar 2024 16:41:45 +0100 Subject: [PATCH] Fix design link application checkboxes. --- Glamourer/Gui/GlamourerChangelog.cs | 2 +- Glamourer/Gui/Tabs/DesignTab/DesignLinkDrawer.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Glamourer/Gui/GlamourerChangelog.cs b/Glamourer/Gui/GlamourerChangelog.cs index 694a68e..473a64b 100644 --- a/Glamourer/Gui/GlamourerChangelog.cs +++ b/Glamourer/Gui/GlamourerChangelog.cs @@ -77,7 +77,7 @@ public class GlamourerChangelog "This is off by default and I strongly recommend AGAINST using it, since Glamourer has no way to revert such changes. You are responsible for keeping your collection in order.", 1) .RegisterHighlight( - "Added mouse wheel scrolling to many selectors, e.g. for equipment, dyes or customizations. You need to hold Control while ") + "Added mouse wheel scrolling to many selectors, e.g. for equipment, dyes or customizations. You need to hold Control while scrolling in most places.") .RegisterEntry("Improved handling for highlights with advanced customization colors and normal customization settings.") .RegisterHighlight( "Changed Item Customizations in Penumbra can now be right-clicked to preview them on your character, if you have the correct Gender/Race combo on them.") diff --git a/Glamourer/Gui/Tabs/DesignTab/DesignLinkDrawer.cs b/Glamourer/Gui/Tabs/DesignTab/DesignLinkDrawer.cs index f9fcaef..5a8c41c 100644 --- a/Glamourer/Gui/Tabs/DesignTab/DesignLinkDrawer.cs +++ b/Glamourer/Gui/Tabs/DesignTab/DesignLinkDrawer.cs @@ -230,13 +230,13 @@ public class DesignLinkDrawer(DesignLinkManager _linkManager, DesignFileSystemSe ImGui.SameLine(); Box(4); if (newType != current) - _linkManager.ChangeApplicationType(_selector.Selected!, idx, order, current); + _linkManager.ChangeApplicationType(_selector.Selected!, idx, order, newType); return; void Box(int i) { var (applicationType, description) = ApplicationTypeExtensions.Types[i]; - var value = applicationType.HasFlag(applicationType); + var value = current.HasFlag(applicationType); if (ImGui.Checkbox($"##{(byte)applicationType}", ref value)) newType = value ? newType | applicationType : newType & ~applicationType; ImGuiUtil.HoverTooltip(description);