mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Load window pos/size/state
This commit is contained in:
parent
94dcf8c0e0
commit
e1cea72396
1 changed files with 8 additions and 7 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue