mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-08-29 21:37:38 +00:00
Fixed Issue 178.
This commit is contained in:
parent
ca1f45475d
commit
6eafde204e
@ -362,9 +362,10 @@ namespace OpenHardwareMonitor.GUI {
|
|||||||
y += hardwareLineHeight;
|
y += hardwareLineHeight;
|
||||||
}
|
}
|
||||||
y += pair.Value.Count * sensorLineHeight;
|
y += pair.Value.Count * sensorLineHeight;
|
||||||
}
|
}
|
||||||
|
if (sensors.Count == 0)
|
||||||
|
y += 4 * sensorLineHeight + hardwareLineHeight;
|
||||||
y += bottomMargin;
|
y += bottomMargin;
|
||||||
y = Math.Max(y, topBorder + hardwareLineHeight + bottomBorder);
|
|
||||||
this.Size = new Size(width, y);
|
this.Size = new Size(width, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -426,7 +427,9 @@ namespace OpenHardwareMonitor.GUI {
|
|||||||
|
|
||||||
if (sensors.Count == 0) {
|
if (sensors.Count == 0) {
|
||||||
x = leftBorder + 1;
|
x = leftBorder + 1;
|
||||||
g.DrawString("Add a sensor ...", smallFont, Brushes.White,
|
g.DrawString("Right-click on a sensor in the main window and select " +
|
||||||
|
"\"Show in Gadget\" to show the sensor here.",
|
||||||
|
smallFont, Brushes.White,
|
||||||
new Rectangle(x, y - 1, w - rightBorder - x, 0));
|
new Rectangle(x, y - 1, w - rightBorder - x, 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user