From 5b6c331434faf50fea6663f58ff36ad272f2e67c Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Mon, 16 Oct 2017 14:12:08 +0900 Subject: [PATCH] Fix all keybindings being reset every startup --- osu.Game/Input/KeyBindingStore.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osu.Game/Input/KeyBindingStore.cs b/osu.Game/Input/KeyBindingStore.cs index e2b6c1dc87..f9578d150b 100644 --- a/osu.Game/Input/KeyBindingStore.cs +++ b/osu.Game/Input/KeyBindingStore.cs @@ -30,7 +30,8 @@ namespace osu.Game.Input protected override void Prepare(bool reset = false) { - Connection.Database.ExecuteSqlCommand("DELETE FROM KeyBinding"); + if (reset) + Connection.Database.ExecuteSqlCommand("DELETE FROM KeyBinding"); } private void insertDefaults(IEnumerable defaults, int? rulesetId = null, int? variant = null)