fixed a bug when showing an already open script editor after changing the always on top option

This commit is contained in:
codeimp 2009-01-14 23:24:05 +00:00
parent b56e7d1926
commit 166113de45

View file

@ -1091,9 +1091,15 @@ namespace CodeImp.DoomBuilder
// Show the window
if(General.Settings.ScriptOnTop)
{
if(scriptwindow.Visible && (scriptwindow.Owner == null)) scriptwindow.Hide();
scriptwindow.Show(General.MainWindow);
}
else
{
if(scriptwindow.Visible && (scriptwindow.Owner != null)) scriptwindow.Hide();
scriptwindow.Show();
}
scriptwindow.Focus();
Cursor.Current = Cursors.Default;
}