mirror of
https://github.com/ppy/osu.git
synced 2025-02-08 04:12:55 +08:00
Code quality
This commit is contained in:
parent
6000e14668
commit
218c04c174
@ -57,7 +57,7 @@ namespace osu.Game.Screens.Edit
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override Drawable CreateHeader(int index, TableColumn column) => new HeaderText(column?.Header ?? default);
|
protected override Drawable CreateHeader(int index, TableColumn? column) => new HeaderText(column?.Header ?? default);
|
||||||
|
|
||||||
private partial class HeaderText : OsuSpriteText
|
private partial class HeaderText : OsuSpriteText
|
||||||
{
|
{
|
||||||
|
@ -35,7 +35,7 @@ namespace osu.Game.Screens.Edit.Timing
|
|||||||
Content = null;
|
Content = null;
|
||||||
BackgroundFlow.Clear();
|
BackgroundFlow.Clear();
|
||||||
|
|
||||||
if (value?.Any() != true)
|
if (!value.Any())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
foreach (var group in value)
|
foreach (var group in value)
|
||||||
@ -67,7 +67,7 @@ namespace osu.Game.Screens.Edit.Timing
|
|||||||
}, true);
|
}, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateSelectedGroup() => SetRowSelected(selectedGroup?.Value);
|
private void updateSelectedGroup() => SetRowSelected(selectedGroup.Value);
|
||||||
|
|
||||||
private TableColumn[] createHeaders()
|
private TableColumn[] createHeaders()
|
||||||
{
|
{
|
||||||
|
@ -141,7 +141,7 @@ namespace osu.Game.Screens.Edit.Timing
|
|||||||
changeHandler?.SaveState();
|
changeHandler?.SaveState();
|
||||||
}, true);
|
}, true);
|
||||||
|
|
||||||
table.OnRowSelected += (drawable) => scroll.ScrollIntoView(drawable);
|
table.OnRowSelected += drawable => scroll.ScrollIntoView(drawable);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool OnClick(ClickEvent e)
|
protected override bool OnClick(ClickEvent e)
|
||||||
|
@ -39,7 +39,7 @@ namespace osu.Game.Screens.Edit.Verify
|
|||||||
Content = null;
|
Content = null;
|
||||||
BackgroundFlow.Clear();
|
BackgroundFlow.Clear();
|
||||||
|
|
||||||
if (value == null)
|
if (!value.Any())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
foreach (var issue in value)
|
foreach (var issue in value)
|
||||||
|
Loading…
Reference in New Issue
Block a user