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 @@ public void TestButtonAddsAndRemovesBeatmap()
}
[Test]
public void TestNewCollectionFilterIsNotSelected()
public void TestManageCollectionsFilterIsNotSelected()
{
addExpandHeaderStep();

View File

@ -54,12 +54,12 @@ public AllBeatmapCollectionFilter()
}
}
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 @@ private void collectionsChanged()
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 @@ private void filterChanged(ValueChangedEvent<CollectionFilter> filter)
// 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();