From 6fbf191d680713e0c122b32da9284c4a5c6ab3cc Mon Sep 17 00:00:00 2001 From: Sigmanor Date: Tue, 12 Jan 2016 18:03:17 +0200 Subject: [PATCH] Fixed bug when saving settings. --- Crypto Notepad/Form1.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Crypto Notepad/Form1.cs b/Crypto Notepad/Form1.cs index 3e0a3fe..8cedb2c 100644 --- a/Crypto Notepad/Form1.cs +++ b/Crypto Notepad/Form1.cs @@ -696,7 +696,7 @@ private async void MainWindow_Activated(object sender, EventArgs e) customRTB.ForeColor = ps.RichForeColor; customRTB.BackColor = ps.RichBackColor; - if (ps.ShowToolbar == false) + if (ps.ShowToolbar == false && panel2.Visible == true) { panel2.Visible = false; int h = customRTB.Height; @@ -705,7 +705,7 @@ private async void MainWindow_Activated(object sender, EventArgs e) customRTB.Location = new Point(0, 25); } - if (ps.ShowToolbar == true) + if (ps.ShowToolbar == true && panel2.Visible == false) { panel2.Visible = true; int h = customRTB.Height;