Merge pull request #3521 from smoogipoo/fix-screenshot-cursor

Fix cursor not hiding in screenshots
This commit is contained in:
Dean Herbert 2018-10-04 02:48:11 +09:00 committed by GitHub
commit 62a51a9ff1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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