mirror of
https://github.com/ppy/osu.git
synced 2024-09-22 01:27:29 +08:00
Fix editor object being requered
This commit is contained in:
parent
9364c7775d
commit
167ac8b5dd
@ -1,8 +1,6 @@
|
|||||||
// 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.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
#nullable disable
|
|
||||||
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
@ -34,7 +32,7 @@ namespace osu.Game.Screens.Edit.Setup
|
|||||||
private EditorBeatmap editorBeatmap { get; set; }
|
private EditorBeatmap editorBeatmap { get; set; }
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private Editor editor { get; set; }
|
private Editor? editor { get; set; }
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private SetupScreenHeader header { get; set; }
|
private SetupScreenHeader header { get; set; }
|
||||||
@ -96,7 +94,7 @@ namespace osu.Game.Screens.Edit.Setup
|
|||||||
working.Value.Metadata.BackgroundFile = destination.Name;
|
working.Value.Metadata.BackgroundFile = destination.Name;
|
||||||
header.Background.UpdateBackground();
|
header.Background.UpdateBackground();
|
||||||
|
|
||||||
editor.ApplyToBackground(bg => bg.RefreshBackground());
|
editor?.ApplyToBackground(bg => bg.RefreshBackground());
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user