Cleanup: format

This commit is contained in:
Campbell Barton 2024-03-15 09:57:36 +11:00
parent 15c060548a
commit 40ab79c887
1 changed files with 3 additions and 2 deletions

View File

@ -627,7 +627,7 @@ class RemovePresetKeyconfig(AddPresetBase, Operator):
keyconfigs = bpy.context.window_manager.keyconfigs
preset_menu_class = getattr(bpy.types, cls.preset_menu)
name = keyconfigs.active.name
filepath = bpy.utils.preset_find(name, cls.preset_subdir, ext = ".py")
filepath = bpy.utils.preset_find(name, cls.preset_subdir, ext=".py")
if not bool(filepath) or is_path_builtin(filepath):
cls.poll_message_set("Built-in keymap configurations cannot be removed")
return False
@ -643,7 +643,8 @@ class RemovePresetKeyconfig(AddPresetBase, Operator):
keyconfigs.remove(keyconfigs.active)
def invoke(self, context, event):
return context.window_manager.invoke_confirm(self, event, title="Remove Keymap Configuration", confirm_text="Delete")
return context.window_manager.invoke_confirm(
self, event, title="Remove Keymap Configuration", confirm_text="Delete")
class AddPresetOperator(AddPresetBase, Operator):