UI: Potential fix for flashing empty game selection screen on first startup
This commit is contained in:
parent
f13e736fd0
commit
8e34a819a7
1 changed files with 6 additions and 1 deletions
|
@ -665,8 +665,12 @@ namespace Mesen.GUI.Forms
|
|||
this.BeginInvoke((MethodInvoker)(() => this.UpdateMenus()));
|
||||
} else {
|
||||
panelInfo.Visible = _emuThread == null;
|
||||
ctrlRecentGames.Visible = _emuThread == null;
|
||||
mnuPowerOff.Enabled = _emuThread != null;
|
||||
if(ctrlRecentGames.Visible && _emuThread == null) {
|
||||
ctrlRecentGames.Visible = false;
|
||||
} else {
|
||||
ctrlRecentGames.Visible = true;
|
||||
}
|
||||
|
||||
ctrlLoading.Visible = (_romLoadCounter > 0);
|
||||
|
||||
|
@ -806,6 +810,7 @@ namespace Mesen.GUI.Forms
|
|||
_emuThread = null;
|
||||
} catch(Exception ex) {
|
||||
MesenMsgBox.Show("UnexpectedError", MessageBoxButtons.OK, MessageBoxIcon.Error, ex.ToString());
|
||||
_emuThread = null;
|
||||
}
|
||||
});
|
||||
_emuThread.Start();
|
||||
|
|
Loading…
Add table
Reference in a new issue