def run(self): """Toggle BH enable state.""" global GLOBAL_ENABLE GLOBAL_ENABLE = not GLOBAL_ENABLE if not GLOBAL_ENABLE: bh_regions.clear_all_regions()
def plugin_unloaded(): bh_thread.kill() bh_regions.clear_all_regions()
def run(self): global GLOBAL_ENABLE GLOBAL_ENABLE = not GLOBAL_ENABLE if not GLOBAL_ENABLE: bh_regions.clear_all_regions()
def plugin_unloaded(): """Tear down plugin.""" bh_thread.kill() bh_regions.clear_all_regions()