mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Lock ui on change
This commit is contained in:
@ -467,11 +467,13 @@ class BTTether(plugins.Plugin):
|
|||||||
self.ready = True
|
self.ready = True
|
||||||
|
|
||||||
def on_unload(self, ui):
|
def on_unload(self, ui):
|
||||||
ui.remove_element('bluetooth')
|
with ui._lock:
|
||||||
|
ui.remove_element('bluetooth')
|
||||||
|
|
||||||
def on_ui_setup(self, ui):
|
def on_ui_setup(self, ui):
|
||||||
ui.add_element('bluetooth', LabeledValue(color=BLACK, label='BT', value='-', position=(ui.width() / 2 - 15, 0),
|
with ui._lock:
|
||||||
label_font=fonts.Bold, text_font=fonts.Medium))
|
ui.add_element('bluetooth', LabeledValue(color=BLACK, label='BT', value='-', position=(ui.width() / 2 - 15, 0),
|
||||||
|
label_font=fonts.Bold, text_font=fonts.Medium))
|
||||||
|
|
||||||
def on_ui_update(self, ui):
|
def on_ui_update(self, ui):
|
||||||
if not self.ready:
|
if not self.ready:
|
||||||
|
Reference in New Issue
Block a user