mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 00:53:56 +09:00
Fix nullref due to screens now being removed from parent
This commit is contained in:
@ -164,11 +164,12 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
protected override void OnHoverLost(HoverLostEvent e)
|
protected override void OnHoverLost(HoverLostEvent e)
|
||||||
{
|
{
|
||||||
if (GetContainingInputManager().HoveredDrawables.Contains(visualSettings))
|
if (GetContainingInputManager()?.HoveredDrawables.Contains(visualSettings) == true)
|
||||||
{
|
{
|
||||||
// show user setting preview
|
// show user setting preview
|
||||||
UpdateBackgroundElements();
|
UpdateBackgroundElements();
|
||||||
}
|
}
|
||||||
|
|
||||||
base.OnHoverLost(e);
|
base.OnHoverLost(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user