Skip to content

Commit

Permalink
Initializing empty output path
Browse files Browse the repository at this point in the history
  • Loading branch information
amenayach committed Sep 24, 2018
1 parent ca4ca23 commit 8586ce9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/SqlToCode/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,14 @@ private bool DataIsValid()

private void MainForm_Load(object sender, EventArgs e)
{
if (tbOutput.Text.IsEmpty())
JSsetTimeout.SetTimeout(() =>
{
tbOutput.Text = Application.StartupPath;
}
if (tbOutput.Text.IsEmpty())
{
tbOutput.Text = Application.StartupPath;
}
}, 500);

}

private void MainForm_KeyDown(object sender, KeyEventArgs e)
Expand Down

0 comments on commit 8586ce9

Please sign in to comment.