implemented log settings
This commit is contained in:
@@ -189,12 +189,15 @@ class PluginLoader(Window):
|
||||
plugin_paths.append(plugin_folder)
|
||||
|
||||
log.write("\n[b]Done loading plugins![/]")
|
||||
if no_errors:
|
||||
if no_errors and int(self.app.config_handler.get("plugins", "log_timeout")) != -1:
|
||||
log.write("[d]Window will automatically close in 10 seconds.[/]")
|
||||
await asyncio.sleep(10)
|
||||
await asyncio.sleep(int(self.app.config_handler.get("plugins", "log_timeout")))
|
||||
self.close_window()
|
||||
|
||||
async def on_mount(self):
|
||||
if bool(int(self.app.config_handler.get("plugins", "log"))) == False:
|
||||
self.display = "none"
|
||||
|
||||
self.find_plugins()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user