mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 16:52:55 +08:00
Rename selectedAvailableDuration
to hasValidDuration
This commit is contained in:
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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user