mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-18 22:41:46 +00:00
fixed a bug when showing an already open script editor after changing the always on top option
This commit is contained in:
parent
b56e7d1926
commit
166113de45
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue