mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-24 04:09:29 +01:00
GPU list in window title
This commit is contained in:
@@ -242,5 +242,26 @@ namespace Flowframes.OS
|
||||
|
||||
ShowNotification(title, text);
|
||||
}
|
||||
|
||||
public static string GetGpus ()
|
||||
{
|
||||
ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT * FROM Win32_DisplayConfiguration");
|
||||
|
||||
List<string> gpus = new List<string>();
|
||||
|
||||
foreach (ManagementObject mo in searcher.Get())
|
||||
{
|
||||
foreach (PropertyData property in mo.Properties)
|
||||
{
|
||||
if (property.Name == "Description")
|
||||
{
|
||||
gpus.Add(property.Value.ToString());
|
||||
Logger.Log("[GetGpus] Found GPU: " + gpus, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return string.Join(", ", gpus);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -137,7 +137,7 @@ namespace Flowframes.OS
|
||||
Logger.Log($"You are running Flowframes {installed}. The latest Patreon version is {latestPat}, the latest free version is {latestFree}.");
|
||||
|
||||
if (installed.ToString() != "0.0.0")
|
||||
Program.mainForm.Text = "Flowframes " + installed.ToString();
|
||||
Program.mainForm.Text = $"Flowframes {installed} [GPU: {OSUtils.GetGpus().Remove("NVIDIA ").Remove("AMD ").Remove("Intel ")}]";
|
||||
}
|
||||
|
||||
public static async Task UpdateModelList()
|
||||
|
||||
Reference in New Issue
Block a user