auto closing plugin loader

This commit is contained in:
SpookyDervish
2025-10-27 07:13:59 +11:00
parent 21f2380c75
commit 0fe3a7e234

View File

@@ -2,7 +2,7 @@ from textual_window import Window
from textual.widgets import RichLog
from textual import work
import os, json
import os, json, asyncio
class PluginLoader(Window):
@@ -11,8 +11,8 @@ class PluginLoader(Window):
id="Plugin Loader",
mode="permanent",
icon="⚙️",
starting_horizontal="centerright",
starting_vertical="lowermiddle",
starting_horizontal="right",
starting_vertical="bottom",
start_open=True
)
@@ -72,6 +72,8 @@ class PluginLoader(Window):
log.write(f"[b green]FOUND[/] {plugin_json['name']} ({plugin_json['version']})")
plugin_paths.append(plugin_folder)
log.write("\n[d]Window will automatically close in 5 seconds.[/]")
await asyncio.sleep(5.0)
self.close_window()
async def on_mount(self):