Added support for multiple processor groups. Changed the ThreadAffinity class to use a new struct GroupAffinity. Changed operating system checks to make use of a new flag OperatingSystem.IsUnix.

This commit is contained in:
Michael Möller
2020-05-04 23:11:33 +02:00
parent 87c6f02d33
commit b04c151c77
25 changed files with 336 additions and 167 deletions

View File

@@ -130,8 +130,7 @@ namespace OpenHardwareMonitor.GUI {
systemTray.HideShowCommand += hideShowClick;
systemTray.ExitCommand += exitClick;
int p = (int)Environment.OSVersion.Platform;
if ((p == 4) || (p == 128)) { // Unix
if (Hardware.OperatingSystem.IsUnix) { // Unix
treeView.RowHeight = Math.Max(treeView.RowHeight, 18);
splitContainer.BorderStyle = BorderStyle.None;
splitContainer.Border3DStyle = Border3DStyle.Adjust;