Potential fix for libraryfolders.vdf change

This (hopefully) should fix #38. Big thanks to @DragRedSim for their help. This will attempt to use the new library file liocation if it's available, and will fall back to the older config.vdf discovery mechanism if it doesn't find the new file.
This commit is contained in:
Terry MacDonald
2021-09-05 22:16:16 +12:00
parent 7c21c19056
commit 0c32b206c0
2 changed files with 72 additions and 24 deletions

View File

@ -586,7 +586,7 @@ namespace DisplayMagicianShared
// ProfileDisplayIdentifiers may be the same but in different order within the array, so we need to handle
// that fact.
int ourMatchedIds = 0;
List<string> otherDisplayIdentifiers =((ProfileItem)obj).ProfileDisplayIdentifiers;
List<string> otherDisplayIdentifiers =(obj as ProfileItem).ProfileDisplayIdentifiers;
foreach (string ourDisplayIdentifier in ProfileDisplayIdentifiers)
{
if (otherDisplayIdentifiers.Contains(ourDisplayIdentifier)){