1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 08:13:31 +08:00

Rename manage collections filter/text

This commit is contained in:
smoogipoo 2020-09-08 18:42:55 +09:00
parent 68f3a1ea9a
commit 4962213cc4
3 changed files with 6 additions and 6 deletions

View File

@ -185,7 +185,7 @@ namespace osu.Game.Tests.Visual.SongSelect
}
[Test]
public void TestNewCollectionFilterIsNotSelected()
public void TestManageCollectionsFilterIsNotSelected()
{
addExpandHeaderStep();

View File

@ -54,12 +54,12 @@ namespace osu.Game.Screens.Select
}
}
public class NewCollectionFilter : CollectionFilter
public class ManageCollectionsFilter : CollectionFilter
{
public NewCollectionFilter()
public ManageCollectionsFilter()
: base(null)
{
CollectionName.Value = "New collection...";
CollectionName.Value = "Manage collections...";
}
}
}

View File

@ -62,7 +62,7 @@ namespace osu.Game.Screens.Select
filters.Clear();
filters.Add(new AllBeatmapCollectionFilter());
filters.AddRange(collections.Select(c => new CollectionFilter(c)));
filters.Add(new NewCollectionFilter());
filters.Add(new ManageCollectionsFilter());
Current.Value = filters.SingleOrDefault(f => f.Collection != null && f.Collection == selectedItem) ?? filters[0];
}
@ -85,7 +85,7 @@ namespace osu.Game.Screens.Select
// Never select the manage collection filter - rollback to the previous filter.
// This is done after the above since it is important that bindable is unbound from OldValue, which is lost after forcing it back to the old value.
if (filter.NewValue is NewCollectionFilter)
if (filter.NewValue is ManageCollectionsFilter)
{
Current.Value = filter.OldValue;
manageCollectionsDialog?.Show();