mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-11-07 17:36:00 +00:00
[ci] auto-format
This commit is contained in:
parent
84514438b4
commit
34bbcba187
1 changed files with 5 additions and 4 deletions
|
|
@ -375,18 +375,19 @@ class StartupTasks:
|
||||||
reverse=True,
|
reverse=True,
|
||||||
)
|
)
|
||||||
new_supported_plugins = new_supported_plugins[:new_plugin_count]
|
new_supported_plugins = new_supported_plugins[:new_plugin_count]
|
||||||
new_supported_plugins = [plug.replace('_', ' ').title() for plug in new_supported_plugins]
|
new_supported_plugins = [plug.replace('_', ' ').title()
|
||||||
|
for plug in new_supported_plugins]
|
||||||
new_supported_plugins_count = len(new_supported_plugins)
|
new_supported_plugins_count = len(new_supported_plugins)
|
||||||
if new_supported_plugins_count > 0:
|
if new_supported_plugins_count > 0:
|
||||||
new_supported_plugins = ", ".join(map(str, (new_supported_plugins
|
new_supported_plugins = ", ".join(map(str, (new_supported_plugins
|
||||||
if new_supported_plugins_count < 4 else
|
if new_supported_plugins_count < 4 else
|
||||||
new_supported_plugins[0:3])
|
new_supported_plugins[0:3])
|
||||||
))
|
))
|
||||||
if new_supported_plugins_count == 1:
|
if new_supported_plugins_count == 1:
|
||||||
notification_text = f"{new_supported_plugins_count} new plugin ({new_supported_plugins}) is available!"
|
notification_text = f"{new_supported_plugins_count} new plugin ({new_supported_plugins}) is available!"
|
||||||
else:
|
else:
|
||||||
notification_text = (f"{new_supported_plugins_count} new plugins " +
|
notification_text = (f"{new_supported_plugins_count} new plugins " +
|
||||||
f"({new_supported_plugins + (', etc' if new_supported_plugins_count > 3 else '')}) are available!")
|
f"({new_supported_plugins + (', etc' if new_supported_plugins_count > 3 else '')}) are available!")
|
||||||
bui.screenmessage(notification_text, color=(0, 1, 0))
|
bui.screenmessage(notification_text, color=(0, 1, 0))
|
||||||
|
|
||||||
if existing_num_of_plugins != new_num_of_plugins:
|
if existing_num_of_plugins != new_num_of_plugins:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue