We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10436a5 commit d28a62cCopy full SHA for d28a62c
larray_editor/editor.py
@@ -503,11 +503,12 @@ def update_title(self):
503
self.setWindowTitle(' - '.join(title))
504
505
def set_current_array(self, array, name):
506
- if array is not self.current_array:
507
- self.current_array = array
508
- self.arraywidget.set_data(array)
509
- self.current_array_name = name
510
- self.update_title()
+ # we should NOT check that "array is not self.current_array" because this method is also called to
+ # refresh the widget value because of an inplace setitem
+ self.current_array = array
+ self.arraywidget.set_data(array)
+ self.current_array_name = name
511
+ self.update_title()
512
513
def _add_arrays(self, arrays):
514
for k, v in arrays.items():
0 commit comments