@@ -32,12 +32,12 @@ def update_manual_labels(self):
3232 elif self .backend == 'panel' :
3333 self ._panel_update_labels ()
3434
35- def notify_unit_visibility_changed (self ):
35+ def notify_unit_and_channel_visibility_changed (self ):
3636 selected_units = self .controller .get_visible_unit_ids ()
3737 visible_channel_inds = self .controller .get_common_sparse_channels (selected_units )
3838 self .controller .set_channel_visibility (visible_channel_inds )
3939 self .notify_channel_visibility_changed ()
40- super () .notify_unit_visibility_changed ()
40+ self .notify_unit_visibility_changed ()
4141
4242 ## Qt ##
4343 def _qt_make_layout (self ):
@@ -337,7 +337,7 @@ def _qt_on_item_changed(self, item):
337337 self .controller .set_unit_visibility (unit_id , is_visible )
338338 updated_visibile_units = self .controller .get_visible_unit_ids ()
339339 if set (current_visible_units ) != set (updated_visibile_units ):
340- self .notify_unit_visibility_changed ()
340+ self .notify_unit_and_channel_visibility_changed ()
341341
342342
343343 elif col in self .label_columns :
@@ -356,7 +356,7 @@ def _qt_on_double_clicked(self, row, col):
356356 self .controller .set_visible_unit_ids ([unit_id ])
357357 updated_visibile_units = self .controller .get_visible_unit_ids ()
358358 if set (current_visible_units ) != set (updated_visibile_units ):
359- self .notify_unit_visibility_changed ()
359+ self .notify_unit_and_channel_visibility_changed ()
360360 self ._qt_refresh_visibility_items ()
361361
362362 def _qt_on_open_context_menu (self ):
@@ -383,7 +383,7 @@ def _qt_on_visible_shortcut(self):
383383 self .controller .set_visible_unit_ids (self .get_selected_unit_ids ())
384384 updated_visibile_units = self .controller .get_visible_unit_ids ()
385385 if set (current_visible_units ) != set (updated_visibile_units ):
386- self .notify_unit_visibility_changed ()
386+ self .notify_unit_and_channel_visibility_changed ()
387387 self ._qt_refresh_visibility_items ()
388388
389389 for row in rows :
@@ -414,7 +414,7 @@ def _qt_on_only_next_shortcut(self):
414414 self .controller .set_visible_unit_ids ([unit_id ])
415415 updated_visibile_units = self .controller .get_visible_unit_ids ()
416416 if set (current_visible_units ) != set (updated_visibile_units ):
417- self .notify_unit_visibility_changed ()
417+ self .notify_unit_and_channel_visibility_changed ()
418418 self ._qt_refresh_visibility_items ()
419419 self .table .clearSelection ()
420420 self .table .selectRow (new_row )
@@ -680,7 +680,7 @@ def _panel_on_visible_checkbox_toggled(self, row):
680680
681681 # update the visible column
682682 self .table .value .loc [self .controller .unit_ids , "visible" ] = self .controller .get_units_visibility_mask ()
683- self .notify_unit_visibility_changed ()
683+ self .notify_unit_and_channel_visibility_changed ()
684684 self .refresh ()
685685
686686 def _panel_on_unit_visibility_changed (self ):
@@ -754,7 +754,7 @@ def _panel_on_only_selection(self):
754754 df = self .table .value
755755 df .loc [self .controller .unit_ids , "visible" ] = self .controller .get_units_visibility_mask ()
756756 self .table .value = df
757- self .notify_unit_visibility_changed ()
757+ self .notify_unit_and_channel_visibility_changed ()
758758
759759 def _panel_get_selected_unit_ids (self ):
760760 unit_ids = self .table .value .index .values
@@ -809,7 +809,7 @@ def _panel_handle_shortcut(self, event):
809809 self .controller .set_visible_unit_ids (selected_unit_ids )
810810 updated_visibile_units = self .controller .get_visible_unit_ids ()
811811 if set (current_visibile_units ) != set (updated_visibile_units ):
812- self .notify_unit_visibility_changed ()
812+ self .notify_unit_and_channel_visibility_changed ()
813813 self .refresh ()
814814 elif event .data == "clear" :
815815 for unit_id in selected_unit_ids :
0 commit comments