From 0839999901649bc78012e7ab10962da45a702c70 Mon Sep 17 00:00:00 2001 From: Loup-Garou911XD Date: Mon, 22 Apr 2024 14:00:14 +0000 Subject: [PATCH] [ci] auto-format --- plugin_manager.py | 59 +++++++++++++++++++++++------------------------ 1 file changed, 29 insertions(+), 30 deletions(-) diff --git a/plugin_manager.py b/plugin_manager.py index 32b849cf..77256f05 100644 --- a/plugin_manager.py +++ b/plugin_manager.py @@ -1096,42 +1096,41 @@ async def draw_ui(self): if to_draw_button1: selected_btn = bui.buttonwidget(parent=self._root_widget, - position=( - width * ( - 0.1 if self.plugin.is_installed and has_update else - 0.25 if self.plugin.is_installed else - 0.4), pos), - size=button_size, - on_activate_call=button1_action, - color=b1_color, - textcolor=b_text_color, - button_type='square', - text_scale=1, - label=button1_label) + position=( + width * ( + 0.1 if self.plugin.is_installed and has_update else + 0.25 if self.plugin.is_installed else + 0.4), pos), + size=button_size, + on_activate_call=button1_action, + color=b1_color, + textcolor=b_text_color, + button_type='square', + text_scale=1, + label=button1_label) if self.plugin.is_installed: selected_btn = bui.buttonwidget(parent=self._root_widget, - position=(width * (0.4 if has_update else 0.55), pos), - size=button_size, - on_activate_call=button2_action, - color=b2_color, - textcolor=b_text_color, - button_type='square', - text_scale=1, - label=button2_label) + position=(width * (0.4 if has_update else 0.55), pos), + size=button_size, + on_activate_call=button2_action, + color=b2_color, + textcolor=b_text_color, + button_type='square', + text_scale=1, + label=button2_label) if has_update: selected_btn = bui.buttonwidget(parent=self._root_widget, - position=(width * 0.7, pos), - size=button_size, - on_activate_call=button3_action, - color=b3_color, - textcolor=b_text_color, - autoselect=True, - button_type='square', - text_scale=1, - label=button3_label) - + position=(width * 0.7, pos), + size=button_size, + on_activate_call=button3_action, + color=b3_color, + textcolor=b_text_color, + autoselect=True, + button_type='square', + text_scale=1, + label=button3_label) bui.containerwidget(edit=self._root_widget, on_cancel_call=self._cancel,