made loading presets code more robust

This commit is contained in:
Vincent Maas committed 2021-08-18 11:15:56 +02:00
1 parent 3667243fc7
commit dd9ce932fc
10 files changed
+111 -71

No files matched your search

+2 -2
View File
@@ -126,10 +126,10 @@ namespace ColorControl
_nvService.AfterApplyPreset += NvServiceAfterApplyPreset;
}
catch (Exception)
catch (Exception ex)
{
//Logger.Error("Error initializing NvService: " + e.ToLogString());
Logger.Debug("No NVIDIA device detected");
Logger.Debug($"No NVIDIA device detected: {ex.Message}");
tcMain.TabPages.Remove(tabNVIDIA);
}
}