mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2025-02-27 22:31:15 +00:00
Fixed: some stored window settings were incorrectly restored from the program configuration.
This commit is contained in:
parent
c919c250f7
commit
c334888621
1 changed files with 4 additions and 2 deletions
|
@ -36,7 +36,7 @@ namespace CodeImp.DoomBuilder.Windows
|
||||||
{
|
{
|
||||||
// Variables
|
// Variables
|
||||||
private Timer formshowtimer;
|
private Timer formshowtimer;
|
||||||
protected string configname; //mxd
|
protected readonly string configname; //mxd
|
||||||
|
|
||||||
// Constructor
|
// Constructor
|
||||||
protected DelayedForm()
|
protected DelayedForm()
|
||||||
|
@ -47,6 +47,9 @@ namespace CodeImp.DoomBuilder.Windows
|
||||||
this.KeyPreview = true;
|
this.KeyPreview = true;
|
||||||
this.KeyUp += OnKeyUp;
|
this.KeyUp += OnKeyUp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//mxd
|
||||||
|
configname = this.GetType().Name.ToLowerInvariant();
|
||||||
|
|
||||||
// Create a timer that we need to show the form
|
// Create a timer that we need to show the form
|
||||||
formshowtimer = new Timer { Interval = 1 };
|
formshowtimer = new Timer { Interval = 1 };
|
||||||
|
@ -58,7 +61,6 @@ namespace CodeImp.DoomBuilder.Windows
|
||||||
{
|
{
|
||||||
//mxd. Restore location and size
|
//mxd. Restore location and size
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
configname = this.Name.ToLowerInvariant();
|
|
||||||
|
|
||||||
// Restore location
|
// Restore location
|
||||||
Point validlocation = Point.Empty;
|
Point validlocation = Point.Empty;
|
||||||
|
|
Loading…
Reference in a new issue