summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-10-27 20:27:10 +0100
committeremkael <emkael@tlen.pl>2019-10-27 20:49:04 +0100
commitb5749a6b3e29e85ec4c706f89a712dbbf5271de2 (patch)
treeff62a85ba934c38721b0a7939cab204be772db00
parentdcaa7211c5732550cbeb31a0afcb59ce6949835c (diff)
Not blocking GUI on the first run of continuous work
-rw-r--r--spedytor/Form1.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/spedytor/Form1.cs b/spedytor/Form1.cs
index 1b2afe2..7742c3f 100644
--- a/spedytor/Form1.cs
+++ b/spedytor/Form1.cs
@@ -194,7 +194,7 @@ namespace spedytor
bTimer.Image = spedytor.Properties.Resources.stop;
bTimer.Text = "Zatrzymaj";
this.setControlState(false, bTimer);
- tInterval_Tick(null, null);
+ tInterval_Tick(this.bTimer, null);
}
else
{
@@ -222,7 +222,7 @@ namespace spedytor
string filePath = Path.Combine(this.repeatFilePath, dbName + DateTime.Now.ToString("-yyyyMMdd-HHmmss") + ".sql");
threadList.Add(this.invokeSave(filePath, dbName, false));
}
- if (e == null) // programmatic invoke, not actual button click
+ if (sender == null) // programmatic invoke, not actual button click
{
foreach (Thread t in threadList)
{