From 8b73a51fe3be30b24c26366d8e0f94af0e63e57b Mon Sep 17 00:00:00 2001 From: Terry MacDonald Date: Wed, 22 Sep 2021 20:37:10 +1200 Subject: [PATCH] Added additional checks to library mode matching --- DisplayMagicianShared/ProfileRepository.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DisplayMagicianShared/ProfileRepository.cs b/DisplayMagicianShared/ProfileRepository.cs index 30d5230..657140e 100644 --- a/DisplayMagicianShared/ProfileRepository.cs +++ b/DisplayMagicianShared/ProfileRepository.cs @@ -1017,12 +1017,12 @@ namespace DisplayMagicianShared // Figure out the Video Cards and see what mode we want // Get a list of all the PCI Vendor IDs List videoCardVendors = WinLibrary.GetLibrary().GetCurrentPCIVideoCardVendors(); - if (NVIDIALibrary.GetLibrary().PCIVendorIDs.All(value => videoCardVendors.Contains(value))) + if (NVIDIALibrary.GetLibrary().IsInstalled && NVIDIALibrary.GetLibrary().PCIVendorIDs.All(value => videoCardVendors.Contains(value))) { // We detected a NVIDIA video card in the computer _currentVideoMode = VIDEO_MODE.NVIDIA; } - else if (AMDLibrary.GetLibrary().PCIVendorIDs.All(value => videoCardVendors.Contains(value))) + else if (AMDLibrary.GetLibrary().IsInstalled && AMDLibrary.GetLibrary().PCIVendorIDs.All(value => videoCardVendors.Contains(value))) { // We detected an AMD video card in the computer _currentVideoMode = VIDEO_MODE.AMD;