mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 20:22:55 +08:00
Fix SourceChanged
unbind directionality and add null check
This commit is contained in:
parent
dee01abab1
commit
9a92ff1681
@ -124,7 +124,9 @@ namespace osu.Game.Rulesets.Mania.UI
|
||||
protected override void Dispose(bool isDisposing)
|
||||
{
|
||||
base.Dispose(isDisposing);
|
||||
skin.SourceChanged += onSourceChanged;
|
||||
|
||||
if (skin != null)
|
||||
skin.SourceChanged -= onSourceChanged;
|
||||
}
|
||||
|
||||
protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnlyDependencyContainer parent)
|
||||
|
Loading…
Reference in New Issue
Block a user