mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Tidy up implementation and show on returning with new song
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user