SourceRabbit / gcode-sender

Cross platform 3-Axis CNC Machines control software
https://www.sourcerabbit.com
GNU General Public License v3.0
77 stars 21 forks source link

soft reset button creates new window #1

Closed alpharesearch closed 9 years ago

alpharesearch commented 9 years ago

Sometimes pressing the soft reset button creates new window, but both windows are usable?

nsiatras commented 9 years ago

Hello,

Are you sure is this happening? There is no method in the code that re-opens the window.

nsiatras commented 9 years ago

If you are running the GCode Sender from code:

Inside frmMain there is a method OpenControlForm. This method closes frmMain and opens frmControl and removes the fConnectionEstablishedEventListener.

Just check if this is happening

alpharesearch commented 9 years ago

Here is a private video of the issue: http://youtu.be/nSEtekoV6t4 I do run it from Netbeans 8.0.2, but it only happens when if fails to connect first... I guess something is not cleaned up properly... I only added this line: jComboBoxPort.addItem("/tmp/ttyV1"); so I don't have to type my com port in all the time...

nsiatras commented 9 years ago

Hello,

Thank you for the video. It was very helpful! I just fixed the bug and pushed it to GitHub.

Thank you !

alpharesearch commented 9 years ago

Thanks! Works good now!

nsiatras commented 9 years ago

You are welcome!