Skip to content

Commit

Permalink
Merge branch 'v2020.9.9s'
Browse files Browse the repository at this point in the history
  • Loading branch information
Herysia committed Dec 30, 2020
2 parents 5bbaf5d + 36280b0 commit 9b5d75a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CustomKeybinds/Tools/ConfigManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ public static void UpdateKey(KeyAction? action, KeyCode code)
var keybindsSection = _config.GetSection("keybinds") as KeybindSection;

keybindsSection?.Settings.Add(new NameValueConfigurationElement(action.ToString(), code.ToString()));

_config.Save(ConfigurationSaveMode.Full);
}

private class KeybindSection : ConfigurationSection
Expand Down

0 comments on commit 9b5d75a

Please sign in to comment.