Skip to content

Commit

Permalink
Update GUI.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Cliff committed May 21, 2019
1 parent 84bc743 commit c522dc3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion DarkScript 2/GUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ public GUI()

public void SetFormTitle()
{
Text = "DarkScript 2 - " + Path.GetFileName(Project.ProjectPath);
if (Project == null) Text = "DarkScript 2";
else Text = "DarkScript 2 - " + Path.GetFileName(Project.ProjectPath);
}

private void GUI_Load(object sender, EventArgs e)
Expand Down Expand Up @@ -233,6 +234,9 @@ void backup()

if (ofd.ShowDialog() == DialogResult.OK)
{
Project = null;
editorNumeric.Text = "";
editorVerbose.Text = "";
try
{
if (Path.GetExtension(ofd.FileName) == ".dscproj")
Expand Down Expand Up @@ -270,6 +274,7 @@ void backup()
MessageBox.Show(ex.ToString());
}
}
SetFormTitle();
}

private void saveEMEVDAsToolStripMenuItem_Click(object sender, EventArgs e)
Expand Down

0 comments on commit c522dc3

Please sign in to comment.