From c05a2a0f0bf4e4a1cf924ac5f8ca2a80ba7dd263 Mon Sep 17 00:00:00 2001 From: Terry MacDonald Date: Sun, 22 Nov 2020 21:45:04 +1300 Subject: [PATCH] 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. --- HeliosPlus/Program.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/HeliosPlus/Program.cs b/HeliosPlus/Program.cs index 91c0b70..fbce5b9 100644 --- a/HeliosPlus/Program.cs +++ b/HeliosPlus/Program.cs @@ -330,6 +330,10 @@ namespace HeliosPlus { if (!profile.IsPossible) return false; + // We need to check if the profile is the same one that we're on + if (profile.IsActive) + return false; + try { // Now lets prepare changing the display topology task