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();
|
InitializeComponent();
|
||||||
AddressesLabel.BackColor = Color.Transparent;
|
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();
|
LoadConfigSettings();
|
||||||
SetHeader();
|
SetHeader();
|
||||||
Closing += (o, e) => SaveConfigSettings();
|
Closing += (o, e) => SaveConfigSettings();
|
||||||
|
@ -95,6 +93,8 @@ namespace BizHawk.MultiClient
|
||||||
|
|
||||||
private void HexEditor_Load(object sender, EventArgs e)
|
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 (SaveWindowPosition)
|
||||||
{
|
{
|
||||||
if (Wndx >= 0 && Wndy >= 0)
|
if (Wndx >= 0 && Wndy >= 0)
|
||||||
|
|
Loading…
Reference in New Issue