mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 21:07:18 +09:00
Merge pull request #2300 from peppy/fix-skin-event-again
Move binding to LoadComplete
This commit is contained in:
commit
01a6d772e8
@ -45,6 +45,11 @@ namespace osu.Game.Input.Bindings
|
|||||||
private void load(KeyBindingStore keyBindings)
|
private void load(KeyBindingStore keyBindings)
|
||||||
{
|
{
|
||||||
store = keyBindings;
|
store = keyBindings;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void LoadComplete()
|
||||||
|
{
|
||||||
|
base.LoadComplete();
|
||||||
store.KeyBindingChanged += ReloadMappings;
|
store.KeyBindingChanged += ReloadMappings;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,14 +55,19 @@ namespace osu.Game.Skinning
|
|||||||
var dependencies = new DependencyContainer(base.CreateLocalDependencies(parent));
|
var dependencies = new DependencyContainer(base.CreateLocalDependencies(parent));
|
||||||
|
|
||||||
fallbackSource = dependencies.Get<ISkinSource>();
|
fallbackSource = dependencies.Get<ISkinSource>();
|
||||||
if (fallbackSource != null)
|
|
||||||
fallbackSource.SourceChanged += onSourceChanged;
|
|
||||||
|
|
||||||
dependencies.CacheAs<ISkinSource>(this);
|
dependencies.CacheAs<ISkinSource>(this);
|
||||||
|
|
||||||
return dependencies;
|
return dependencies;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void LoadComplete()
|
||||||
|
{
|
||||||
|
base.LoadComplete();
|
||||||
|
|
||||||
|
if (fallbackSource != null)
|
||||||
|
fallbackSource.SourceChanged += onSourceChanged;
|
||||||
|
}
|
||||||
|
|
||||||
protected override void Dispose(bool isDisposing)
|
protected override void Dispose(bool isDisposing)
|
||||||
{
|
{
|
||||||
base.Dispose(isDisposing);
|
base.Dispose(isDisposing);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user