mirror of https://github.com/quasar/Quasar.git
Following the other System Information coding style
This commit is contained in:
parent
24de7ae6bb
commit
948a208280
|
@ -127,13 +127,7 @@ public static string GetGpu()
|
|||
string Query = "SELECT * FROM Win32_DisplayConfiguration";
|
||||
ManagementObjectSearcher searcher = new ManagementObjectSearcher(Query);
|
||||
foreach (ManagementObject Mobject in searcher.Get())
|
||||
{
|
||||
foreach (PropertyData property in Mobject.Properties)
|
||||
{
|
||||
if (property.Name == "Description")
|
||||
GPUName = property.Value.ToString();
|
||||
}
|
||||
}
|
||||
GPUName = Mobject["Description"].ToString();
|
||||
|
||||
return (!string.IsNullOrEmpty(GPUName)) ? GPUName : "N/A";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue