HexEditor: set defaultWidth/Height at loading, not in constructor
This commit is contained in:
parent
389693e6f4
commit
9716387b2f
|
@ -58,8 +58,6 @@ namespace BizHawk.MultiClient
|
|||
{
|
||||
InitializeComponent();
|
||||
AddressesLabel.BackColor = Color.Transparent;
|
||||
defaultWidth = this.Size.Width; //Save these first so that the user can restore to its original size
|
||||
defaultHeight = this.Size.Height;
|
||||
LoadConfigSettings();
|
||||
SetHeader();
|
||||
Closing += (o, e) => SaveConfigSettings();
|
||||
|
@ -95,6 +93,8 @@ namespace BizHawk.MultiClient
|
|||
|
||||
private void HexEditor_Load(object sender, EventArgs e)
|
||||
{
|
||||
defaultWidth = this.Size.Width; //Save these first so that the user can restore to its original size
|
||||
defaultHeight = this.Size.Height;
|
||||
if (SaveWindowPosition)
|
||||
{
|
||||
if (Wndx >= 0 && Wndy >= 0)
|
||||
|
|
Loading…
Reference in New Issue