MaslowCNC / GroundControl

This is the Ground Control software used to control the Maslow CNC Machine
https://www.MaslowCNC.com
GNU General Public License v3.0
275 stars 122 forks source link

Add confirmation when pressing "Define Home" while cutting #813

Open dwaq opened 4 years ago

dwaq commented 4 years ago

I'm just getting started so I'm still messing around while cutting to get my Z axis right. On one cut, I had to start over twice because I accidentally hit the "Define Home" button in the middle of the cut which causes the program to lose the current position and offset everything. At the minimum, a confirmation box should be added to this button while Gcode is running, but it probably wouldn't hurt to have always have a confirmation box because there's no undo for this button press.

BarbourSmith commented 4 years ago

That's a great point, the "define home" button should be disabled while the program is running.

It shouldn't be too difficult. I believe there is already a flag for if a program is running. Linking that flag to the button status shouldn't be too difficult. We could also disable the direction arrows.