Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure unit choices are updated when x_att is changed in profile viewer #2358

Merged
merged 1 commit into from
Feb 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion glue/viewers/profile/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ def _update_att(self, *args):
else:
self.x_att_pixel = self.x_att
self._reset_x_limits()
self._update_x_display_unit_choices()

def _reset_x_limits(self, *event):

Expand Down Expand Up @@ -251,7 +252,6 @@ def _reference_data_changed(self, before=None, after=None):
self._update_att()

self.reset_limits()
self._update_x_display_unit_choices()

def _update_priority(self, name):
if name == 'layers':
Expand Down