misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
Simone Margaritelli
2019-10-20 19:45:45 +02:00
parent c72cb5b962
commit 63568f1725
2 changed files with 12 additions and 9 deletions

View File

@ -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