Skip to content

Commit

Permalink
Should not save pixel view window size if minimized.
Browse files Browse the repository at this point in the history
  • Loading branch information
bbbradsmith committed Oct 13, 2024
1 parent d16febc commit 1f35018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BinxelviewForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ string saveIni(string path)
sw.WriteLine(string.Format("hexpos={0}",decimal_position ? 0 : 1));
sw.WriteLine(string.Format("snapscroll={0}",snap_scroll ? 1 : 0));
sw.WriteLine(string.Format("splitview={0}",split_view ? 1 : 0));
if (split_view) // save split_view window size if active
if (split_view && split_view_form.WindowState == FormWindowState.Normal) // save split_view window size if active
{
sw.WriteLine(string.Format("splitvieww={0}",split_view_form.Width));
sw.WriteLine(string.Format("splitviewh={0}",split_view_form.Height));
Expand Down

0 comments on commit 1f35018

Please sign in to comment.