1- VERSION = '1.229.223 '
1+ VERSION = '1.229.224 '
22
33'''
44qtplasmac_handler.py
@@ -3800,7 +3800,10 @@ def torch_pulse(self, state):
38003800 def torch_pulse_states (self , state ):
38013801 self .set_tab_jog_states (state )
38023802 if not STATUS .is_auto_paused ():
3803- self .set_buttons_state ([self .idleList , self .idleOnList , self .idleHomedList ], state )
3803+ if STATUS .is_on_and_idle () and STATUS .is_all_homed ():
3804+ self .set_buttons_state ([self .idleList , self .idleOnList , self .idleHomedList ], state )
3805+ else :
3806+ self .set_buttons_state ([self .idleList , self .idleOnList ], state )
38043807 if self .w .gcode_display .lines () > 1 :
38053808 self .w .run .setEnabled (state )
38063809 if state :
@@ -3815,14 +3818,14 @@ def ext_ohmic_test(self, state):
38153818
38163819 def ohmic_test (self , state ):
38173820 hal .set_p ('plasmac.ohmic-test' , '{}' .format (str (state )))
3818- buttonList = []
3819- for button in self .idleOnList :
3820- if button != self .otButton :
3821- buttonList .append (button )
3821+ buttonList = [button for button in self .idleOnList if button != self .otButton ]
38223822 if not STATUS .is_auto_paused ():
3823+ if STATUS .is_on_and_idle () and STATUS .is_all_homed ():
3824+ self .set_buttons_state ([self .idleList , self .idleHomedList , buttonList ], not state )
3825+ else :
3826+ self .set_buttons_state ([self .idleList , buttonList ], not state )
38233827 if self .w .gcode_display .lines () > 1 :
38243828 self .w .run .setEnabled (not state )
3825- self .set_buttons_state ([self .idleList , buttonList , self .idleHomedList ], not state )
38263829
38273830 def ext_frame_job (self , state ):
38283831 if self .frButton and self .w [self .frButton ].isEnabled ():
0 commit comments