0
0
Fork 0
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:
MaxED 2016-09-17 21:45:07 +00:00 committed by spherallic
parent c919c250f7
commit c334888621

View file

@ -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;