diff --git a/DisplayMagicianShared/ProfileItem.cs b/DisplayMagicianShared/ProfileItem.cs index b3e9d10..5d691f6 100644 --- a/DisplayMagicianShared/ProfileItem.cs +++ b/DisplayMagicianShared/ProfileItem.cs @@ -477,9 +477,20 @@ namespace DisplayMagicianShared WinLibrary winLibrary = WinLibrary.GetLibrary(); // For a library update to the latest version so that we pick up any new changes since the last update - nvidiaLibrary.UpdateActiveConfig(); - amdLibrary.UpdateActiveConfig(); - winLibrary.UpdateActiveConfig(); + if (VideoMode == VIDEO_MODE.NVIDIA && nvidiaLibrary.IsInstalled) + { + nvidiaLibrary.UpdateActiveConfig(); + winLibrary.UpdateActiveConfig(); + } + else if (VideoMode == VIDEO_MODE.AMD && amdLibrary.IsInstalled) + { + amdLibrary.UpdateActiveConfig(); + winLibrary.UpdateActiveConfig(); + } + else + { + winLibrary.UpdateActiveConfig(); + } // Grab the profile data from the current stored config (that we just updated) _nvidiaDisplayConfig = nvidiaLibrary.ActiveDisplayConfig; diff --git a/DisplayMagicianShared/Windows/WinLibrary.cs b/DisplayMagicianShared/Windows/WinLibrary.cs index e75e794..8b65ffa 100644 --- a/DisplayMagicianShared/Windows/WinLibrary.cs +++ b/DisplayMagicianShared/Windows/WinLibrary.cs @@ -1445,7 +1445,7 @@ namespace DisplayMagicianShared.Windows if (!displayIdentifiers.Contains(displayIdentifier)) { displayIdentifiers.Add(displayIdentifier); - SharedLogger.logger.Debug($"ProfileRepository/GenerateProfileDisplayIdentifiers: DisplayIdentifier: {displayIdentifier}"); + SharedLogger.logger.Debug($"WinLibrary/GetSomeDisplayIdentifiers: DisplayIdentifier: {displayIdentifier}"); } }