Skip to content

Commit

Permalink
fix: set selected index for figure controls after new figure is gener…
Browse files Browse the repository at this point in the history
…ated

When creating a blank figure, the GUI was not automatically opening/selecting the new figure tab. This was because the selected index was only being set for the figure tabs but not the figure control tabs. This made them not synchronous, and when the two tab groups are later linked, it reverted to the un-updated index.
  • Loading branch information
gtdang committed Sep 20, 2024
1 parent d5c3bcc commit 11edf56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hnn_core/gui/_viz_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,7 @@ def _add_figure(b, widgets, data, template_type, scale=0.95, dpi=96):

data['figs'][fig_idx] = fig
widgets['figs_tabs'].selected_index = n_tabs
widgets['axes_config_tabs'].selected_index = n_tabs
data['fig_idx']['idx'] += 1


Expand Down

0 comments on commit 11edf56

Please sign in to comment.