Call unload with ui arg

This commit is contained in:
dadav
2019-11-30 09:43:39 +01:00
parent f973997cdb
commit 608904daf8
3 changed files with 6 additions and 6 deletions

View File

@ -466,11 +466,10 @@ class BTTether(plugins.Plugin):
logging.info("BT-TETHER: Successfully loaded ...")
self.ready = True
def on_unload(self):
self.ui.remove_element('bluetooth')
def on_unload(self, ui):
ui.remove_element('bluetooth')
def on_ui_setup(self, ui):
self.ui = ui
ui.add_element('bluetooth', LabeledValue(color=BLACK, label='BT', value='-', position=(ui.width() / 2 - 15, 0),
label_font=fonts.Bold, text_font=fonts.Medium))