File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,16 @@ def _connect_ui(self):
110110 self ._update_workbenches ()
111111 self ._uptdate_items ()
112112
113+ if self ._fsm .config is None :
114+ self ._ui_dict ['checkbox_unnamedwarning' ].setEnabled (False )
115+ else :
116+ self ._ui_dict ['checkbox_unnamedwarning' ].setCheckState (
117+ Qt .Checked if self ._fsm .config .get ('show_unnamed_warning' , False ) else Qt .Unchecked
118+ )
119+ def change_unnamedwarning ():
120+ self ._fsm .config ['show_unnamed_warning' ] = bool (self ._ui_dict ['checkbox_unnamedwarning' ].isChecked ())
121+ self ._ui_dict ['checkbox_unnamedwarning' ].stateChanged .connect (change_unnamedwarning )
122+
113123 def _list_workbenches_currentrowchanged (self ):
114124
115125 if not bool (self ._ui_dict ['list_workbenches' ].isEnabled ()):
You can’t perform that action at this time.
0 commit comments