1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-30 01:05:02 +08:00

Rename selectedAvailableDuration to hasValidDuration

This commit is contained in:
Joseph Madamba
2023-07-25 22:57:01 -07:00
Unverified
parent 0bd34a4f13
commit 30e0e00c52
@@ -317,7 +317,7 @@ namespace osu.Game.Screens.OnlinePlay.Playlists
DurationField.Current.BindValueChanged(duration =>
{
if (selectedAvailableDuration)
if (hasValidDuration)
durationNoticeText.Hide();
else
{
@@ -369,9 +369,9 @@ namespace osu.Game.Screens.OnlinePlay.Playlists
playlistLength.Text = $"Length: {Playlist.GetTotalDuration()}";
private bool hasValidSettings => RoomID.Value == null && NameField.Text.Length > 0 && Playlist.Count > 0
&& selectedAvailableDuration;
&& hasValidDuration;
private bool selectedAvailableDuration => DurationField.Current.Value < TimeSpan.FromDays(31) || localUser.Value.IsSupporter;
private bool hasValidDuration => DurationField.Current.Value < TimeSpan.FromDays(31) || localUser.Value.IsSupporter;
private void apply()
{