mirror of
https://github.com/ppy/osu.git
synced 2026-05-28 19:20:25 +08:00
Fix SourceChanged unbind directionality and add null check
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user