Skip to content

Commit

Permalink
Rerender when panel buffer is modified
Browse files Browse the repository at this point in the history
Ensure that a rerender occurs when the panel buffer is modified.

Signed-off-by: Patrick Avery <[email protected]>
  • Loading branch information
psavery committed Oct 11, 2023
1 parent 5bba70f commit ac4a229
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hexrd/ui/calibration/panel_buffer_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def on_accepted(self):

if self.update_config():
self.accepted.emit()
HexrdConfig().rerender_needed.emit()
self.finished.emit(self.ui.result())

def on_rejected(self):
Expand Down Expand Up @@ -211,6 +212,7 @@ def clear_panel_buffer(self):
# Clear the config options on the internal config
self.detector_config['buffer'] = self.default_buffer
self.update_enable_states()
HexrdConfig().rerender_needed.emit()

@property
def default_buffer(self):
Expand Down

0 comments on commit ac4a229

Please sign in to comment.