diff --git a/Crypto Notepad/Form1.cs b/Crypto Notepad/Form1.cs index 8a1dd52..7d0b926 100644 --- a/Crypto Notepad/Form1.cs +++ b/Crypto Notepad/Form1.cs @@ -318,13 +318,6 @@ private void MainWindow_Load(object sender, EventArgs e) { string pos = ps.WindowLocation.ToString(); - if (pos != "{X=0,Y=0}") - { - this.Location = ps.WindowLocation; - } - - this.Size = ps.WindowSize; - customRTB.Font = new Font(ps.RichTextFont, ps.RichTextSize); customRTB.ForeColor = ps.RichForeColor; customRTB.BackColor = ps.RichBackColor; @@ -364,6 +357,14 @@ private void MainWindow_Load(object sender, EventArgs e) { openAsotiations(); } + + if (pos != "{X=0,Y=0}") + { + this.Location = ps.WindowLocation; + } + + this.Size = ps.WindowSize; + this.WindowState = ps.WindowState; } public void DeleteUpdateFiles()