[ci] auto-format

This commit is contained in:
brostosjoined 2024-04-30 09:23:50 +00:00 committed by github-actions[bot]
parent 4a687c9f6b
commit 4d73fb33f9
2 changed files with 24 additions and 21 deletions

View file

@ -2083,8 +2083,10 @@ class PluginManagerWindow(bui.Window):
if self.plugin_manager.categories != {}: if self.plugin_manager.categories != {}:
if self.plugin_manager.categories['All'] is not None: if self.plugin_manager.categories['All'] is not None:
category_plugins = await self.plugin_manager.categories[category if category != 'Installed' else 'All'].get_plugins() category_plugins = await self.plugin_manager.categories[category if category != 'Installed' else 'All'].get_plugins()
else: return else:
else: return return
else:
return
except (KeyError, AttributeError): except (KeyError, AttributeError):
no_internet_text = "Make sure you are connected\n to the Internet and try again." no_internet_text = "Make sure you are connected\n to the Internet and try again."
if bui.textwidget(query=self._plugin_manager_status_text) != no_internet_text: if bui.textwidget(query=self._plugin_manager_status_text) != no_internet_text:

View file

@ -334,7 +334,6 @@ if ANDROID: # !can add ios in future
except Exception: except Exception:
return return
def close(self): def close(self):
self.stop_heartbeat_thread.set() self.stop_heartbeat_thread.set()
self.do_once = True self.do_once = True
@ -858,6 +857,8 @@ def get_class():
return RpcThread() return RpcThread()
# ba_meta export babase.Plugin # ba_meta export babase.Plugin
class DiscordRP(babase.Plugin): class DiscordRP(babase.Plugin):
def __init__(self) -> None: def __init__(self) -> None:
self.update_timer: bs.Timer | None = None self.update_timer: bs.Timer | None = None