ARCed.Settings.EditorSettings.AddToRecent C# (CSharp) Method

AddToRecent() public method

Adds a value to the "Recently Opened" list and trims the list to the max allowed items
public AddToRecent ( string filename ) : void
filename string The filename to add
return void
        public void AddToRecent(string filename)
        {
            if (this.RecentlyOpened.Contains(filename))
                this.RecentlyOpened.Remove(filename);
            this.RecentlyOpened.Insert(0, filename);
            if (this.RecentlyOpened.Count > this.MaxRecent)
                this.RecentlyOpened.RemoveRange(this.MaxRecent - 1, this.RecentlyOpened.Count - this.MaxRecent);
        }