From 1b4cca9390aca13df31b6ca5474e734ffab02ffa Mon Sep 17 00:00:00 2001 From: Ferdi Franceschini Date: Wed, 9 Jul 2014 09:41:09 +1000 Subject: [PATCH] Options not in the cascade list should have their implementation set to 'none' --- site_ansto/instrument/util/config_edit.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/site_ansto/instrument/util/config_edit.py b/site_ansto/instrument/util/config_edit.py index dee80282..a011619c 100755 --- a/site_ansto/instrument/util/config_edit.py +++ b/site_ansto/instrument/util/config_edit.py @@ -509,6 +509,10 @@ class InstConfigManager(object): if self.cf_dat.opt_dict[opt]['permanent'] == True: self.opt_lw.button_dict[opt].set_state(True) + if self.opt_lw.button_dict[opt].get_state() == False: + self.cf_dat.set_imp(opt, 'none') + self.opt_lw.button_dict[opt].set_label('{0}:none'.format(opt)) + return def opt_statechange(self, button, new_state):