Fixed Profile matching for Surround

Fixed the Profile.Equals logic so that it
could detect the difference between
Surround and non-Surround triple screen
configurations. Now seems to work fine.

Also adjusted the ProfileAdapter so that
the profile imagelistview works correctly.
Moved to using the UUID rather than the
name to allow users to change the name
without affecting the UUID. That was a
change I should have made AGES ago.
This commit is contained in:
Terry MacDonald
2021-03-26 22:57:05 +13:00
parent 11cd923e46
commit 1b6cc7967d
5 changed files with 13 additions and 8 deletions

View File

@ -326,13 +326,16 @@ namespace DisplayMagicianShared
// If run-time types are not exactly the same, return false.
if (this.GetType() != other.GetType())
return false;
// Check if the profile identifiers are not the same, then return false
if (!ProfileDisplayIdentifiers.SequenceEqual(other.ProfileDisplayIdentifiers))
return false;
// Check whether the profiles' properties are equal
// We need to exclude the name as the name is solely for saving to disk
// and displaying to the user.
// Two profiles are equal only when they have the same viewport data
//if (Paths.SequenceEqual(other.Paths))
if (ProfileDisplayIdentifiers.SequenceEqual(other.ProfileDisplayIdentifiers))
if (Paths.SequenceEqual(other.Paths))
return true;
else
return false;