mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-08-29 13:28:04 +00:00
Fixed Issue 57.
This commit is contained in:
parent
984029f77e
commit
6ed8ff2895
@ -97,6 +97,11 @@ namespace OpenHardwareMonitor.GUI {
|
|||||||
Width = Utilities.Config.Get("mainForm.Width", Width);
|
Width = Utilities.Config.Get("mainForm.Width", Width);
|
||||||
Height = Utilities.Config.Get("mainForm.Height", Height);
|
Height = Utilities.Config.Get("mainForm.Height", Height);
|
||||||
|
|
||||||
|
foreach (TreeColumn column in treeView.Columns)
|
||||||
|
column.Width = Math.Max(20, Math.Min(400,
|
||||||
|
Config.Get("treeView.Columns." + column.Header + ".Width",
|
||||||
|
column.Width)));
|
||||||
|
|
||||||
treeModel = new TreeModel();
|
treeModel = new TreeModel();
|
||||||
root = new Node(System.Environment.MachineName);
|
root = new Node(System.Environment.MachineName);
|
||||||
root.Image = Utilities.EmbeddedResources.GetImage("computer.png");
|
root.Image = Utilities.EmbeddedResources.GetImage("computer.png");
|
||||||
@ -267,6 +272,10 @@ namespace OpenHardwareMonitor.GUI {
|
|||||||
Config.Set("mainForm.Height", Height);
|
Config.Set("mainForm.Height", Height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foreach (TreeColumn column in treeView.Columns)
|
||||||
|
Config.Set("treeView.Columns." + column.Header + ".Width",
|
||||||
|
column.Width);
|
||||||
|
|
||||||
timer.Enabled = false;
|
timer.Enabled = false;
|
||||||
|
|
||||||
sensorSystemTray.Dispose();
|
sensorSystemTray.Dispose();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user