Before syncing a widget's state, check first for the property lock, then for the widget state lock

Jason Grout 12 years ago
parent af26d9cc24
commit 5cd46788f9

@ -280,10 +280,13 @@ class Widget(LoggingConfigurable):
def _should_send_property(self, key, value):
"""Check the property lock (property_lock)"""
if self._send_state_lock > 0:
if (key == self._property_lock[0] and value == self._property_lock[1]):
return False
elif self._send_state_lock > 0:
self._states_to_send.add(key)
return False
return key != self._property_lock[0] or value != self._property_lock[1]
else:
return True
# Event handlers
@_show_traceback

Loading…
Cancel
Save