Skip to content

Commit 6fa1f25

Browse files
committed
Merge branch '2.9'
2 parents 7df3d6c + a2e6c34 commit 6fa1f25

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

share/qtvcp/screens/qtdragon/qtdragon_handler.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,7 @@ def dialog_return(self, w, message):
495495
elif wait_code and name == 'MESSAGE':
496496
self.h['eoffset-spindle-count'] = 0
497497
self.h['eoffset-clear'] = True
498+
self.add_status('Spindle lowered')
498499
elif unhome_code and name == 'MESSAGE' and rtn is True:
499500
ACTION.SET_MACHINE_UNHOMED(-1)
500501
elif overwrite and name == 'MESSAGE':
@@ -683,8 +684,10 @@ def disable_pause_buttons(self, state):
683684
fval = float(self.w.lineEdit_eoffset_count.text())
684685
self.h['eoffset-spindle-count'] = int(fval)
685686
self.h['spindle-inhibit'] = True
687+
self.add_status("Spindle stopped and raised {}".format(fval))
686688
else:
687689
self.h['spindle-inhibit'] = False
690+
self.add_status('Spindle re-started')
688691
# instantiate warning box
689692
info = "Wait for spindle at speed signal before resuming"
690693
mess = {'NAME':'MESSAGE', 'ICON':'WARNING', 'ID':'_wait_resume_', 'MESSAGE':'CAUTION', 'MORE':info, 'TYPE':'OK'}
@@ -1175,12 +1178,12 @@ def adjust_stacked_widgets(self,requestedIndex):
11751178
TAB_FILE: (TAB_MAIN,PAGE_GCODE,False,SHOW_DRO),
11761179
TAB_OFFSETS: (TAB_MAIN,PAGE_GCODE,False,SHOW_DRO),
11771180
TAB_TOOL: (TAB_MAIN,PAGE_GCODE,False,SHOW_DRO),
1178-
TAB_STATUS: (TAB_MAIN,PAGE_GCODE,False,SHOW_DRO),
1181+
TAB_STATUS: (requestedIndex,PAGE_GCODE,False,SHOW_DRO),
11791182
TAB_PROBE: (TAB_MAIN,PAGE_GCODE,False,SHOW_DRO),
11801183
TAB_CAMERA: (requestedIndex,PAGE_UNCHANGED,False,SHOW_DRO),
11811184
TAB_GCODES: (requestedIndex,PAGE_UNCHANGED,False,SHOW_DRO),
11821185
TAB_SETUP: (requestedIndex,PAGE_UNCHANGED,False,SHOW_DRO),
1183-
TAB_SETTINGS: (TAB_MAIN,PAGE_GCODE,False,SHOW_DRO),
1186+
TAB_SETTINGS: (requestedIndex,PAGE_GCODE,False,SHOW_DRO),
11841187
TAB_UTILITIES: (TAB_MAIN,PAGE_GCODE,False,SHOW_DRO),
11851188
TAB_USER: (requestedIndex,PAGE_UNCHANGED,IGNORE,IGNORE) }
11861189
else:

share/qtvcp/screens/qtdragon_hd/qtdragon_hd_handler.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,7 @@ def dialog_return(self, w, message):
530530
self.h['eoffset-clear'] = True
531531
self.h['eoffset-spindle-count'] = 0
532532
self.w.spindle_eoffset_value.setText('0')
533+
self.add_status('Spindle lowered')
533534
elif unhome_code and name == 'MESSAGE' and rtn is True:
534535
ACTION.SET_MACHINE_UNHOMED(-1)
535536
elif overwrite and name == 'MESSAGE':
@@ -689,12 +690,14 @@ def btn_pause_spindle_clicked(self, state):
689690
self.h['eoffset-spindle-count'] = int(fval)
690691
self.w.spindle_eoffset_value.setText(self.w.lineEdit_eoffset_count.text())
691692
self.h['spindle-inhibit'] = True
693+
self.add_status("Spindle stopped and raised {}".format(fval))
692694
if not QHAL.hal.component_exists("z_level_compensation"):
693695
self.add_status("Z level compensation HAL component not loaded", CRITICAL)
694696
return
695697
else:
696698
# turn spindle back on
697699
self.h['spindle-inhibit'] = False
700+
self.add_status('Spindle re-started')
698701
# wait for dialog to close before lowering spindle
699702
if STATUS.is_auto_running():
700703
info = "Wait for spindle at speed signal before resuming"
@@ -1228,7 +1231,7 @@ def adjust_stacked_widgets(self,requestedIndex):
12281231
TAB_CAMVIEW: (requestedIndex,PAGE_UNCHANGED,SHOW_DRO),
12291232
TAB_GCODES: (requestedIndex,PAGE_UNCHANGED,SHOW_DRO),
12301233
TAB_SETUP: (requestedIndex,PAGE_UNCHANGED,SHOW_DRO),
1231-
TAB_SETTINGS: (TAB_MAIN,PAGE_GCODE,SHOW_DRO),
1234+
TAB_SETTINGS: (requestedIndex,PAGE_GCODE,SHOW_DRO),
12321235
TAB_UTILS: (TAB_MAIN,PAGE_GCODE,SHOW_DRO),
12331236
TAB_USER: (requestedIndex,PAGE_UNCHANGED,IGNORE) }
12341237
else:

0 commit comments

Comments
 (0)