Added IsActive check to ChangeProfile

ChangeProfile was always trying to apply the
profile even if it was already on it. So changed
that so it only does it when it's needed.
This commit is contained in:
Terry MacDonald 2020-11-22 21:45:04 +13:00
parent 34eab029d1
commit c05a2a0f0b

View File

@ -330,6 +330,10 @@ namespace HeliosPlus {
if (!profile.IsPossible) if (!profile.IsPossible)
return false; return false;
// We need to check if the profile is the same one that we're on
if (profile.IsActive)
return false;
try try
{ {
// Now lets prepare changing the display topology task // Now lets prepare changing the display topology task