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.
This commit is contained in:
Shawrkie Williams
2026-02-04 16:51:50 -05:00
parent a453dd8dd6
commit 755a71813f
@@ -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();
}