Skip to content

Commit

Permalink
[ci] auto-format
Browse files Browse the repository at this point in the history
  • Loading branch information
Loup-Garou911XD authored and github-actions[bot] committed Apr 22, 2024
1 parent 6e3dbf0 commit 0839999
Showing 1 changed file with 29 additions and 30 deletions.
59 changes: 29 additions & 30 deletions plugin_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0839999

Please sign in to comment.