Fix loading of cheats window, do not load most recent file on autoload in this dialog's case, also fix bug in the function
This commit is contained in:
parent
05ee956c92
commit
f6eaeda6c9
|
@ -1041,12 +1041,10 @@ namespace BizHawk.MultiClient
|
||||||
if (!Cheats1.IsHandleCreated || Cheats1.IsDisposed)
|
if (!Cheats1.IsHandleCreated || Cheats1.IsDisposed)
|
||||||
{
|
{
|
||||||
Cheats1 = new Cheats();
|
Cheats1 = new Cheats();
|
||||||
if (Global.Config.AutoLoadCheats && Global.Config.RecentCheats.Length() > 0)
|
|
||||||
Cheats1.LoadCheatFromRecent(Global.Config.RecentCheats.GetRecentFileByPosition(0));
|
|
||||||
Cheats1.Show();
|
Cheats1.Show();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
NESPPU1.Focus();
|
Cheats1.Focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
private int lastWidth = -1;
|
private int lastWidth = -1;
|
||||||
|
|
Loading…
Reference in New Issue