From 755a71813fbd5fecb5055929d726a3f695e9aee4 Mon Sep 17 00:00:00 2001 From: Shawrkie Williams Date: Wed, 4 Feb 2026 16:51:50 -0500 Subject: [PATCH] Clears highlight state when disabling features Ensures highlight labels are cleared when BiS Buddy or AllaganTools categories are disabled. This prevents stale highlights from persisting when a feature is toggled off. --- .../Category/CategoryGeneralConfigurationNode.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/AetherBags/Nodes/Configuration/Category/CategoryGeneralConfigurationNode.cs b/AetherBags/Nodes/Configuration/Category/CategoryGeneralConfigurationNode.cs index 34f0f53..d23e7ea 100644 --- a/AetherBags/Nodes/Configuration/Category/CategoryGeneralConfigurationNode.cs +++ b/AetherBags/Nodes/Configuration/Category/CategoryGeneralConfigurationNode.cs @@ -111,7 +111,10 @@ public sealed class CategoryGeneralConfigurationNode : TabbedVerticalListNode { config.BisBuddyEnabled = isChecked; if (bbModeDropdown != null) bbModeDropdown.IsEnabled = isChecked; - if (isChecked) System.IPC.BisBuddy?.RefreshItems(); + if (isChecked) + System.IPC.BisBuddy?.RefreshItems(); + else + HighlightState.ClearLabel(HighlightSource.BiSBuddy); System.IPC?.RefreshExternalSources(); RefreshInventory(); } @@ -156,7 +159,10 @@ public sealed class CategoryGeneralConfigurationNode : TabbedVerticalListNode { config.AllaganToolsCategoriesEnabled = isChecked; if (atModeDropdown != null) atModeDropdown.IsEnabled = isChecked; - if (isChecked) System.IPC?.AllaganTools?.RefreshFilters(); + if (isChecked) + System.IPC?.AllaganTools?.RefreshFilters(); + else + HighlightState.ClearLabel(HighlightSource.AllaganTools); System.IPC?.RefreshExternalSources(); RefreshInventory(); }