mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Simplify exit logic of screens with textboxes using back button receptor
This commit is contained in:
@ -31,7 +31,6 @@ namespace osu.Game.Overlays.Music
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
Height = 40,
|
||||
Exit = () => ExitRequested?.Invoke(),
|
||||
},
|
||||
new CollectionsDropdown<PlaylistCollection>
|
||||
{
|
||||
@ -47,8 +46,6 @@ namespace osu.Game.Overlays.Music
|
||||
|
||||
private void current_ValueChanged(ValueChangedEvent<string> e) => FilterChanged?.Invoke(e.NewValue);
|
||||
|
||||
public Action ExitRequested;
|
||||
|
||||
public Action<string> FilterChanged;
|
||||
|
||||
public class FilterTextBox : SearchTextBox
|
||||
|
@ -63,7 +63,6 @@ namespace osu.Game.Overlays.Music
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
AutoSizeAxes = Axes.Y,
|
||||
ExitRequested = Hide,
|
||||
FilterChanged = search => list.Filter(search),
|
||||
Padding = new MarginPadding(10),
|
||||
},
|
||||
|
Reference in New Issue
Block a user