##// END OF EJS Templates
Before syncing a widget's state, check first for the property lock, then for the widget state lock
Jason Grout -
Show More
@@ -280,10 +280,13 b' class Widget(LoggingConfigurable):'
280
280
281 def _should_send_property(self, key, value):
281 def _should_send_property(self, key, value):
282 """Check the property lock (property_lock)"""
282 """Check the property lock (property_lock)"""
283 if self._send_state_lock > 0:
283 if (key == self._property_lock[0] and value == self._property_lock[1]):
284 return False
285 elif self._send_state_lock > 0:
284 self._states_to_send.add(key)
286 self._states_to_send.add(key)
285 return False
287 return False
286 return key != self._property_lock[0] or value != self._property_lock[1]
288 else:
289 return True
287
290
288 # Event handlers
291 # Event handlers
289 @_show_traceback
292 @_show_traceback
General Comments 0
You need to be logged in to leave comments. Login now