Fix UI extension removal

App-templates & keymap names had their extensions removed twice.

Confusing for filenames containing dots.
This commit is contained in:
Campbell Barton
2019-01-25 13:45:56 +11:00
parent 3d8cbb534f
commit 6cc5c28d15
3 changed files with 5 additions and 4 deletions

View File

@@ -369,7 +369,7 @@ def draw_keymaps(context, layout):
spref = context.space_data
# row.prop_search(wm.keyconfigs, "active", wm, "keyconfigs", text="Key Config")
text = bpy.path.display_name(kc_active.name)
text = bpy.path.display_name(kc_active.name, has_ext=False)
if not text:
text = "Blender (default)"