UI: Fixed recent game screen crash (when game crashes, if recent game screen is disabled or empty)
This commit is contained in:
parent
109530b463
commit
d400f22dd7
2 changed files with 5 additions and 2 deletions
|
@ -83,7 +83,6 @@ namespace Mesen.GUI.Controls
|
|||
public void Initialize()
|
||||
{
|
||||
_initialized = true;
|
||||
tmrInput.Enabled = true;
|
||||
_recentGames = new List<RecentGameInfo>();
|
||||
_currentIndex = 0;
|
||||
|
||||
|
@ -117,8 +116,10 @@ namespace Mesen.GUI.Controls
|
|||
|
||||
if(_recentGames.Count == 0) {
|
||||
this.Visible = false;
|
||||
tmrInput.Enabled = false;
|
||||
} else {
|
||||
UpdateGameInfo();
|
||||
tmrInput.Enabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -596,7 +596,9 @@ namespace Mesen.GUI.Forms
|
|||
if(_hdPackEditorWindow != null) {
|
||||
_hdPackEditorWindow.Close();
|
||||
}
|
||||
ctrlRecentGames.Initialize();
|
||||
if(!ConfigManager.Config.PreferenceInfo.DisableGameSelectionScreen) {
|
||||
ctrlRecentGames.Initialize();
|
||||
}
|
||||
if(e.Parameter == IntPtr.Zero) {
|
||||
//We are completely stopping the emulation, close fullscreen mode
|
||||
StopExclusiveFullscreenMode();
|
||||
|
|
Loading…
Add table
Reference in a new issue