Tidy up implementation and show on returning with new song

This commit is contained in:
Dean Herbert
2020-01-24 16:23:41 +09:00
parent 3f6fa93365
commit f9a54dfb1d
2 changed files with 25 additions and 32 deletions

View File

@ -1,4 +1,4 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
@ -17,8 +17,6 @@ namespace osu.Game.Screens.Menu
{
private const int fade_duration = 800;
public bool AllowUpdates { get; set; } = true;
[Resolved]
private Bindable<WorkingBeatmap> beatmap { get; set; }
@ -58,8 +56,7 @@ namespace osu.Game.Screens.Menu
private void onBeatmapChanged(ValueChangedEvent<WorkingBeatmap> working)
{
if (!AllowUpdates)
return;
var metadata = beatmap.Value.Metadata;
var metadata = working.NewValue.Metadata;