UI: Fixed crash in recent game selection screen (when > 20 roms exist in the recent games folder)
This commit is contained in:
parent
07a5962dab
commit
bfa88fb5d5
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ namespace Mesen.GUI.Controls
|
||||||
|
|
||||||
_recentGames = _recentGames.OrderBy((info) => info.Timestamp).Reverse().ToList();
|
_recentGames = _recentGames.OrderBy((info) => info.Timestamp).Reverse().ToList();
|
||||||
|
|
||||||
if(_recentGames.Count > 20) {
|
if(_recentGames.Count > 36) {
|
||||||
_recentGames.RemoveRange(36, _recentGames.Count - 36);
|
_recentGames.RemoveRange(36, _recentGames.Count - 36);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue