mirror of
https://github.com/terrymacdonald/DisplayMagician.git
synced 2024-08-30 18:32:20 +00:00
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user