public void AddToList(List <RecentAsset> assetList, string guid, bool save)
        {
            //Debug.Log("adding");

            RecentAsset assetToAdd = new RecentAsset(guid);

            if (assetList.Count >= assetList.Capacity)
            {
                assetList.RemoveAt(0);
            }

            if (isReimportedAndSelectedGUID(guid))
            {
                assetToAdd._selected = true;
            }

            if (IsSelected(guid))
            {
                assetToAdd._selected = true;
            }

            RemoveAssetsWithGUID(assetList, guid);

            assetList.Add(assetToAdd);
            Save();
        }
 public void SetFavourite(RecentAsset ra, bool isFavourite)
 {
     if (isFavourite)
     {
         recentAssets.Remove(ra);
         favourites.Add(ra);
     }
     else
     {
         favourites.Remove(ra);
         AddToList(recentAssets, ra._GUID, true);
     }
     Save();
 }