mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 20:22:55 +08:00
Rename manage collections filter/text
This commit is contained in:
parent
68f3a1ea9a
commit
4962213cc4
@ -185,7 +185,7 @@ namespace osu.Game.Tests.Visual.SongSelect
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestNewCollectionFilterIsNotSelected()
|
||||
public void TestManageCollectionsFilterIsNotSelected()
|
||||
{
|
||||
addExpandHeaderStep();
|
||||
|
||||
|
@ -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...";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user