Fixed bug when saving settings.

This commit is contained in:
Sigmanor 2016-01-12 18:03:17 +02:00
parent 569e08e91c
commit 6fbf191d68

View file

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