mirror of https://github.com/ppy/osu
Rename manage collections filter/text
This commit is contained in:
parent
68f3a1ea9a
commit
4962213cc4
|
@ -185,7 +185,7 @@ public void TestButtonAddsAndRemovesBeatmap()
|
|||
}
|
||||
|
||||
[Test]
|
||||
public void TestNewCollectionFilterIsNotSelected()
|
||||
public void TestManageCollectionsFilterIsNotSelected()
|
||||
{
|
||||
addExpandHeaderStep();
|
||||
|
||||
|
|
|
@ -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...";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue