mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 15:44:04 +09:00
Use expression body for property get/set where possible
This commit is contained in:
@ -38,10 +38,7 @@ namespace osu.Game.Overlays.Chat.Selection
|
||||
public IEnumerable<string> FilterTerms => new[] { channel.Name };
|
||||
public bool MatchingFilter
|
||||
{
|
||||
set
|
||||
{
|
||||
this.FadeTo(value ? 1f : 0f, 100);
|
||||
}
|
||||
set => this.FadeTo(value ? 1f : 0f, 100);
|
||||
}
|
||||
|
||||
public Action<Channel> OnRequestJoin;
|
||||
|
@ -23,21 +23,18 @@ namespace osu.Game.Overlays.Chat.Selection
|
||||
public IEnumerable<string> FilterTerms => Array.Empty<string>();
|
||||
public bool MatchingFilter
|
||||
{
|
||||
set
|
||||
{
|
||||
this.FadeTo(value ? 1f : 0f, 100);
|
||||
}
|
||||
set => this.FadeTo(value ? 1f : 0f, 100);
|
||||
}
|
||||
|
||||
public string Header
|
||||
{
|
||||
get { return header.Text; }
|
||||
set { header.Text = value.ToUpperInvariant(); }
|
||||
get => header.Text;
|
||||
set => header.Text = value.ToUpperInvariant();
|
||||
}
|
||||
|
||||
public IEnumerable<Channel> Channels
|
||||
{
|
||||
set { ChannelFlow.ChildrenEnumerable = value.Select(c => new ChannelListItem(c)); }
|
||||
set => ChannelFlow.ChildrenEnumerable = value.Select(c => new ChannelListItem(c));
|
||||
}
|
||||
|
||||
public ChannelSection()
|
||||
|
Reference in New Issue
Block a user