Skip to content

Commit

Permalink
Add Safety Countdown
Browse files Browse the repository at this point in the history
Add Safety Countdown
Add Legal Disclamer
  • Loading branch information
arkypita committed Jul 15, 2023
1 parent 28360e3 commit d5776a5
Show file tree
Hide file tree
Showing 17 changed files with 1,867 additions and 402 deletions.
2 changes: 1 addition & 1 deletion LaserGRBL/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// È possibile specificare tutti i valori oppure impostare valori predefiniti per i numeri relativi alla revisione e alla build
// utilizzando l'asterisco (*) come descritto di seguito:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion ("4.9.5")]
[assembly: AssemblyVersion ("5.0.0")]
[assembly: NeutralResourcesLanguage("en")]
8 changes: 5 additions & 3 deletions LaserGRBL/ConnectLogForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public partial class ConnectLogForm : System.Windows.Forms.UserControl

GrblCore Core;
private string mLoadedFileName;
private bool mForceButtonDisable;

public ConnectLogForm()
{
Expand Down Expand Up @@ -199,7 +200,10 @@ void BtnOpenClick(object sender, EventArgs e)

void BtnRunProgramClick(object sender, EventArgs e)
{
mForceButtonDisable = true;
BtnRunProgram.Enabled = false;
Core.RunProgram(ParentForm);
mForceButtonDisable = false;
}
void TxtManualCommandCommandEntered(string command)
{
Expand Down Expand Up @@ -228,8 +232,6 @@ public void TimerUpdate()

PB.Invalidate();



/*
Idle: All systems are go, no motions queued, and it's ready for anything.
Run: Indicates a cycle is running.
Expand All @@ -243,7 +245,7 @@ public void TimerUpdate()
TT.SetToolTip(BtnConnectDisconnect, Core.IsConnected ? Strings.BtnDisconnectTT : Strings.BtnConnectTT);

BtnConnectDisconnect.UseAltImage = Core.IsConnected;
BtnRunProgram.Enabled = Core.CanSendFile;
BtnRunProgram.Enabled = Core.CanSendFile && !mForceButtonDisable;
BtnRunProgram.Visible = !Core.CanAbortProgram;
BtnAbortProgram.Visible = Core.CanAbortProgram;
BtnOpen.Enabled = Core.CanLoadNewFile;
Expand Down
Loading

0 comments on commit d5776a5

Please sign in to comment.