From 63f649af25e70a9d3c9e84eee91e4a8a360a2d11 Mon Sep 17 00:00:00 2001 From: Lerking Date: Thu, 27 Mar 2025 19:30:41 +0000 Subject: [PATCH] #31 Added **self.use_pre_load:bool = False** and pre_load() method. --- plugins/example_plugin/example_plugin.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/example_plugin/example_plugin.py b/plugins/example_plugin/example_plugin.py index 0dbef91..9f630c9 100644 --- a/plugins/example_plugin/example_plugin.py +++ b/plugins/example_plugin/example_plugin.py @@ -13,6 +13,8 @@ class ExamplePlugin(XtendRBase): >>> plugin.stop() ExamplePlugin has stopped! """ + self.use_pre_load:bool = False #Indicate that pre-loading isn't neccessary + def run(self, *args, **kwargs): arglen = len(args) keylen = len(kwargs) @@ -31,3 +33,6 @@ class ExamplePlugin(XtendRBase): def stop(self): print("ExamplePlugin has stopped!") + + def pre_load(self): + pass