mirror of
https://github.com/ppy/osu.git
synced 2024-11-16 14:57:25 +08:00
28 lines
834 B
C#
28 lines
834 B
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
namespace osu.Game.Overlays.Mods
|
|
{
|
|
public partial class ModSearchContainer : SearchContainer
|
|
{
|
|
public new string SearchTerm
|
|
{
|
|
get => base.SearchTerm;
|
|
set
|
|
{
|
|
if (value == SearchTerm)
|
|
return;
|
|
|
|
base.SearchTerm = value;
|
|
|
|
// Manual filtering here is required because ModColumn can be hidden when search term applied,
|
|
// causing the whole SearchContainer to become non-present and never actually perform a subsequent
|
|
// filter.
|
|
Filter();
|
|
}
|
|
}
|
|
}
|
|
}
|