Add missing `ToArray` call

Not sure where this went, was there in my original commit.
This commit is contained in:
Dean Herbert 2022-04-01 16:19:00 +09:00
parent 69d4f86122
commit 01681ee874
1 changed files with 4 additions and 4 deletions

View File

@ -145,10 +145,10 @@ public void EnsureMutableSkin()
if (!s.Protected)
return;
var existingSkinNames = realm.Run(r => r.All<SkinInfo>()
string[] existingSkinNames = realm.Run(r => r.All<SkinInfo>()
.Where(skin => !skin.DeletePending)
.AsEnumerable()
.Select(skin => skin.Name));
.Select(skin => skin.Name)).ToArray();
// if the user is attempting to save one of the default skin implementations, create a copy first.
var skinInfo = new SkinInfo