Merge remote-tracking branch 'upstream/master' into import-test-fixes

This commit is contained in:
Dean Herbert
2017-10-22 17:50:03 +09:00
2 changed files with 11 additions and 2 deletions

View File

@ -15,6 +15,8 @@ namespace osu.Game.Input
{
public class KeyBindingStore : DatabaseBackedStore
{
public event Action KeyBindingChanged;
public KeyBindingStore(Func<OsuDbContext> getContext, RulesetStore rulesets, Storage storage = null)
: base(getContext, storage)
{
@ -79,6 +81,8 @@ namespace osu.Game.Input
var context = GetContext();
context.Update(keyBinding);
context.SaveChanges();
KeyBindingChanged?.Invoke();
}
}
}