Improve category matching
This commit is contained in:
@@ -119,6 +119,7 @@ public class AddonCategoryConfigurationWindow : NativeAddon
|
||||
listNode.AddOption(newWrapper);
|
||||
|
||||
RefreshSelectionList();
|
||||
System.AddonInventoryWindow.ManualInventoryRefresh();
|
||||
}
|
||||
|
||||
private void OnRemoveCategory(CategoryWrapper categoryWrapper)
|
||||
@@ -134,6 +135,7 @@ public class AddonCategoryConfigurationWindow : NativeAddon
|
||||
{
|
||||
OnOptionChanged(null);
|
||||
}
|
||||
System.AddonInventoryWindow.ManualInventoryRefresh();
|
||||
}
|
||||
|
||||
private void RefreshSelectionList()
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
using AetherBags.Configuration;
|
||||
using AetherBags.Inventory;
|
||||
using Dalamud.Game.Text.SeStringHandling;
|
||||
using KamiToolKit.Premade;
|
||||
using SeStringBuilder = Lumina.Text.SeStringBuilder;
|
||||
|
||||
namespace AetherBags.Addons;
|
||||
|
||||
@@ -13,7 +16,8 @@ public class CategoryWrapper(UserCategoryDefinition categoryDefinition) : IInfoN
|
||||
}
|
||||
|
||||
public string GetSubLabel() {
|
||||
return CategoryDefinition!.Enabled ? "Enabled" : "Disabled";
|
||||
if(UserCategoryMatcher.IsCatchAll(CategoryDefinition!)) return " No valid rules!";
|
||||
return CategoryDefinition!.Enabled ? "✓ Enabled" : " Disabled";
|
||||
}
|
||||
|
||||
public uint? GetId() => null;
|
||||
|
||||
Reference in New Issue
Block a user