UI: Fixed UI crash at startup when starting emulator via file associations/etc.
This commit is contained in:
parent
cf33b464d8
commit
46a02d4a9a
2 changed files with 6 additions and 7 deletions
|
@ -18,7 +18,6 @@ namespace Mesen.GUI.Debugger
|
|||
private SnesMemoryType _memoryType = SnesMemoryType.CpuMemory;
|
||||
private bool _updating = false;
|
||||
private DateTime _lastUpdate = DateTime.MinValue;
|
||||
private TabPage _selectedTab;
|
||||
private bool _formClosed;
|
||||
|
||||
public frmMemoryTools()
|
||||
|
|
|
@ -74,13 +74,13 @@ namespace Mesen.GUI.Forms
|
|||
|
||||
_commandLine.LoadGameFromCommandLine();
|
||||
|
||||
Task.Run(() => {
|
||||
System.Threading.Thread.Sleep(25);
|
||||
this.BeginInvoke((Action)(() => {
|
||||
SaveStateManager.InitializeStateMenu(mnuSaveState, true, _shortcuts);
|
||||
SaveStateManager.InitializeStateMenu(mnuLoadState, false, _shortcuts);
|
||||
SaveStateManager.InitializeStateMenu(mnuSaveState, true, _shortcuts);
|
||||
SaveStateManager.InitializeStateMenu(mnuLoadState, false, _shortcuts);
|
||||
BindShortcuts();
|
||||
|
||||
BindShortcuts();
|
||||
Task.Run(() => {
|
||||
Thread.Sleep(25);
|
||||
this.BeginInvoke((Action)(() => {
|
||||
|
||||
ResizeRecentGames();
|
||||
ctrlRecentGames.Initialize();
|
||||
|
|
Loading…
Add table
Reference in a new issue