Fix cursor not hiding in screenshots

This commit is contained in:
smoogipoo 2018-10-02 10:12:07 +09:00
parent 0d70306794
commit 97c585c54c
1 changed files with 2 additions and 4 deletions

View File

@ -65,7 +65,8 @@ public class OsuGame : OsuGameBase, IKeyBindingHandler<GlobalAction>
private BeatmapSetOverlay beatmapSetOverlay;
private ScreenshotManager screenshotManager;
[Cached]
private readonly ScreenshotManager screenshotManager = new ScreenshotManager();
protected RavenLogger RavenLogger;
@ -289,9 +290,6 @@ protected override void Dispose(bool isDisposing)
protected override void LoadComplete()
{
// this needs to be cached before base.LoadComplete as it is used by MenuCursorContainer.
dependencies.Cache(screenshotManager = new ScreenshotManager());
base.LoadComplete();
// The next time this is updated is in UpdateAfterChildren, which occurs too late and results