handle if option to show progress bar is off
This commit is contained in:
@@ -80,6 +80,8 @@ namespace ntfysh_client
|
|||||||
displayTimeoutTimer.Elapsed += handleTimeout;
|
displayTimeoutTimer.Elapsed += handleTimeout;
|
||||||
this.displayTimeoutTimer.Start();
|
this.displayTimeoutTimer.Start();
|
||||||
|
|
||||||
|
if (showTimeOutBar)
|
||||||
|
{
|
||||||
this.progress = 100;
|
this.progress = 100;
|
||||||
this.updateTimer = new System.Windows.Forms.Timer();
|
this.updateTimer = new System.Windows.Forms.Timer();
|
||||||
updateTimer.Interval = 100;
|
updateTimer.Interval = 100;
|
||||||
@@ -92,6 +94,11 @@ namespace ntfysh_client
|
|||||||
this.progressBar1.Visible = true;
|
this.progressBar1.Visible = true;
|
||||||
this.lbTimeout.Visible = true;
|
this.lbTimeout.Visible = true;
|
||||||
this._timeout = timeout_ms;
|
this._timeout = timeout_ms;
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
this.progressBar1.Visible = false;
|
||||||
|
this.lbTimeout.Visible = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user