mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-22 16:39:29 +01:00
Design combo Filter checks path too
This commit is contained in:
parent
411b83a55f
commit
19c48b2b0e
1 changed files with 7 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ using Glamourer.Events;
|
||||||
using Glamourer.Services;
|
using Glamourer.Services;
|
||||||
using ImGuiNET;
|
using ImGuiNET;
|
||||||
using OtterGui;
|
using OtterGui;
|
||||||
|
using OtterGui.Classes;
|
||||||
using OtterGui.Widgets;
|
using OtterGui.Widgets;
|
||||||
|
|
||||||
namespace Glamourer.Gui.Tabs.AutomationTab;
|
namespace Glamourer.Gui.Tabs.AutomationTab;
|
||||||
|
|
@ -90,6 +91,12 @@ public sealed class DesignCombo : FilterComboCache<(Design, string)>
|
||||||
protected override string ToString((Design, string) obj)
|
protected override string ToString((Design, string) obj)
|
||||||
=> obj.Item1.Name.Text;
|
=> obj.Item1.Name.Text;
|
||||||
|
|
||||||
|
protected override bool IsVisible(int globalIndex, LowerString filter)
|
||||||
|
{
|
||||||
|
var (design, path) = Items[globalIndex];
|
||||||
|
return filter.IsContained(path) || design.Name.Lower.Contains(filter.Lower);
|
||||||
|
}
|
||||||
|
|
||||||
private static Design CreateRevertDesign(ItemManager items)
|
private static Design CreateRevertDesign(ItemManager items)
|
||||||
=> new(items)
|
=> new(items)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue