Addon Manager: Black reformat

This commit is contained in:
Chris Hennes
2022-04-06 14:30:22 -05:00
parent 1ede604cfd
commit 1480c1f594
5 changed files with 93 additions and 42 deletions

View File

@@ -46,6 +46,7 @@ def ask_to_install_toolbar_button(repo: Addon) -> None:
)
add_toolbar_button_dialog.exec()
def check_for_button(repo: Addon) -> bool:
command = FreeCADGui.Command.findCustomCommand(repo.macro.filename)
if not command:
@@ -60,6 +61,7 @@ def check_for_button(repo: Addon) -> bool:
return True
return False
def ask_for_toolbar(
repo: Addon, custom_toolbars
) -> object: # Returns the pref group for the new toolbar