mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-10-08 14:54:36 +00:00
[ci] auto-format
This commit is contained in:
parent
f2f14563d4
commit
65a75f3fc8
1 changed files with 21 additions and 19 deletions
|
|
@ -1769,10 +1769,11 @@ class PluginManagerWindow(bui.MainWindow):
|
||||||
size=48,
|
size=48,
|
||||||
)
|
)
|
||||||
|
|
||||||
def spin(self,show=False):
|
def spin(self, show=False):
|
||||||
w = self._loading_spinner
|
w = self._loading_spinner
|
||||||
p = self._root_widget
|
p = self._root_widget
|
||||||
bui.spinnerwidget(w,visible=show) if w.exists() and p.exists() and not p.transitioning_out else None
|
bui.spinnerwidget(w, visible=show) if w.exists(
|
||||||
|
) and p.exists() and not p.transitioning_out else None
|
||||||
|
|
||||||
@contextlib.contextmanager
|
@contextlib.contextmanager
|
||||||
def exception_handler(self):
|
def exception_handler(self):
|
||||||
|
|
@ -1871,7 +1872,7 @@ class PluginManagerWindow(bui.MainWindow):
|
||||||
button_type="square",
|
button_type="square",
|
||||||
textcolor=b_textcolor,
|
textcolor=b_textcolor,
|
||||||
text_scale=0.6)
|
text_scale=0.6)
|
||||||
bui.buttonwidget(b,on_activate_call=lambda: self.show_categories_window(source=b)),
|
bui.buttonwidget(b, on_activate_call=lambda: self.show_categories_window(source=b)),
|
||||||
else:
|
else:
|
||||||
b = self.category_selection_button
|
b = self.category_selection_button
|
||||||
bui.buttonwidget(
|
bui.buttonwidget(
|
||||||
|
|
@ -2055,7 +2056,8 @@ class PluginManagerWindow(bui.MainWindow):
|
||||||
self._last_filter_text = search_term
|
self._last_filter_text = search_term
|
||||||
self._last_filter_plugins = plugins
|
self._last_filter_plugins = plugins
|
||||||
|
|
||||||
if not self._columnwidget.exists(): return
|
if not self._columnwidget.exists():
|
||||||
|
return
|
||||||
|
|
||||||
if category == 'Installed':
|
if category == 'Installed':
|
||||||
plugin_names_to_draw = tuple(
|
plugin_names_to_draw = tuple(
|
||||||
|
|
@ -2117,7 +2119,7 @@ class PluginManagerWindow(bui.MainWindow):
|
||||||
def show_plugin_window(self, plugin):
|
def show_plugin_window(self, plugin):
|
||||||
PluginWindow(plugin, self._root_widget, lambda: self.draw_plugin_name(plugin))
|
PluginWindow(plugin, self._root_widget, lambda: self.draw_plugin_name(plugin))
|
||||||
|
|
||||||
def show_categories_window(self,source):
|
def show_categories_window(self, source):
|
||||||
PluginCategoryWindow(
|
PluginCategoryWindow(
|
||||||
self.plugin_manager.categories.keys(),
|
self.plugin_manager.categories.keys(),
|
||||||
self.selected_category,
|
self.selected_category,
|
||||||
|
|
@ -2219,7 +2221,7 @@ class PluginManagerSettingsWindow(popup.PopupWindow):
|
||||||
textcolor=b_text_color,
|
textcolor=b_text_color,
|
||||||
button_type='square',
|
button_type='square',
|
||||||
label='')
|
label='')
|
||||||
bui.buttonwidget(b,on_activate_call=lambda:ChangelogWindow(b))
|
bui.buttonwidget(b, on_activate_call=lambda: ChangelogWindow(b))
|
||||||
bui.textwidget(parent=self._root_widget,
|
bui.textwidget(parent=self._root_widget,
|
||||||
position=((width * 0.2) - button_size[0] / 2, pos),
|
position=((width * 0.2) - button_size[0] / 2, pos),
|
||||||
size=(70, 30),
|
size=(70, 30),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue