Another recentfiles bug - fix so that the last recent on the list is removed when the max count has been exceeded
This commit is contained in:
parent
54b676fcca
commit
a956d47716
|
@ -44,7 +44,7 @@ namespace BizHawk.MultiClient
|
||||||
}
|
}
|
||||||
recentlist.Insert(0, newFile);
|
recentlist.Insert(0, newFile);
|
||||||
if (recentlist.Count > MAX_RECENT_FILES)
|
if (recentlist.Count > MAX_RECENT_FILES)
|
||||||
recentlist.Remove(recentlist[0]);
|
recentlist.Remove(recentlist[recentlist.Count-1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool Remove(string newFile)
|
public bool Remove(string newFile)
|
||||||
|
|
Loading…
Reference in New Issue