Skip to content

Commit cfbef6a

Browse files
committed
Don't allow WPPF difference enabling from settings
Signed-off-by: Patrick Avery <[email protected]>
1 parent af4d0e0 commit cfbef6a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

hexrdgui/hexrd_config.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,15 @@ def load_from_state(self, state):
560560
# We loaded a state with the old statuses. Remove them.
561561
self.remove_status(self.config['instrument'])
562562

563+
# Never allow WPPF difference curve to be set `True` from state
564+
disable_wppf_difference = (
565+
state.get('config_calibration',
566+
{}).get('wppf',
567+
{}).get('show_difference_axis')
568+
)
569+
if disable_wppf_difference:
570+
state['config_calibration']['wppf']['show_difference_axis'] = False
571+
563572
# Now load everything else
564573
try:
565574
for name, value in state.items():

0 commit comments

Comments
 (0)