mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-09-03 15:55:26 +00:00
Changed the way hardware nodes are inserted into the GUI tree view. The new code should keep the order (as enumerated by the parent) for hardware of the same type.
This commit is contained in:
@@ -435,7 +435,7 @@ namespace OpenHardwareMonitor.GUI {
|
||||
private void InsertSorted(Collection<Node> nodes, HardwareNode node) {
|
||||
int i = 0;
|
||||
while (i < nodes.Count && nodes[i] is HardwareNode &&
|
||||
((HardwareNode)nodes[i]).Hardware.HardwareType <
|
||||
((HardwareNode)nodes[i]).Hardware.HardwareType <=
|
||||
node.Hardware.HardwareType)
|
||||
i++;
|
||||
nodes.Insert(i, node);
|
||||
|
Reference in New Issue
Block a user