mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
@ -310,7 +310,10 @@ class View(object):
|
||||
self.set('status', self._voice.custom(text))
|
||||
self.update()
|
||||
|
||||
def update(self, force=False):
|
||||
def update(self, force=False, new_data={}):
|
||||
for key, val in new_data.items():
|
||||
self.set(key, val)
|
||||
|
||||
with self._lock:
|
||||
if self._frozen:
|
||||
return
|
||||
|
Reference in New Issue
Block a user