mirror of
https://github.com/ppy/osu.git
synced 2024-09-22 06:47:24 +08:00
Shorten show/hide code
This commit is contained in:
parent
3322b8a7ea
commit
d74c19e2d7
@ -256,11 +256,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
|||||||
|
|
||||||
selectionDetailsText.Text = count > 0 ? count.ToString() : string.Empty;
|
selectionDetailsText.Text = count > 0 ? count.ToString() : string.Empty;
|
||||||
|
|
||||||
if (count > 0)
|
this.FadeTo(count > 0 ? 1 : 0);
|
||||||
Show();
|
|
||||||
else
|
|
||||||
Hide();
|
|
||||||
|
|
||||||
OnSelectionChanged();
|
OnSelectionChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user