WM: fix hard coded rename

Currently the filenames are used when setting keymaps.
This hard coded naming meant the preset and setting function
need to be kept in sync.

Prefer to not have hard coded replacements which need to be duplicated.
This commit is contained in:
2018-11-16 09:35:24 +11:00
parent be66428a8f
commit 0f21b64b1a

View File

@@ -607,9 +607,6 @@ def keyconfig_set(filepath, report=None):
# Get name, exception for default keymap to keep backwards compatibility.
name = splitext(basename(filepath))[0]
if name == 'blender':
name = 'Blender'
kc_new = keyconfigs.get(name)
if kc_new is None:
if report is not None: