mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-09 04:24:36 -05:00
Fix recently loaded tracking
Not present would return instantly; just chain it with the remove tail
This commit is contained in:
parent
7256ff0a7f
commit
802275ced0
|
|
@ -153,9 +153,8 @@ public GameVersion DefaultSaveVersion
|
|||
public void LoadSaveFile(string path)
|
||||
{
|
||||
var recent = RecentlyLoaded;
|
||||
if (!recent.Remove(path))
|
||||
return;
|
||||
if (recent.Count >= MaxRecentCount)
|
||||
// Remove from list if already present.
|
||||
if (!recent.Remove(path) && recent.Count >= MaxRecentCount)
|
||||
recent.RemoveAt(recent.Count - 1);
|
||||
recent.Insert(0, path);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user