mirror of https://github.com/ppy/osu
Fix multiple cursors appearing
This commit is contained in:
parent
c79d187a89
commit
9588944048
|
@ -35,12 +35,16 @@ public override void Show()
|
|||
{
|
||||
base.Show();
|
||||
clickToResumeCursor.ShowAt(GameplayCursor.ActiveCursor.Position);
|
||||
Add(localCursorContainer = new GameplayCursorContainer());
|
||||
|
||||
if (localCursorContainer == null)
|
||||
Add(localCursorContainer = new GameplayCursorContainer());
|
||||
}
|
||||
|
||||
public override void Hide()
|
||||
{
|
||||
localCursorContainer.Expire();
|
||||
localCursorContainer?.Expire();
|
||||
localCursorContainer = null;
|
||||
|
||||
base.Hide();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue