diff --git a/GUI/MainForm.cs b/GUI/MainForm.cs index 800fe15..d1dd9d0 100644 --- a/GUI/MainForm.cs +++ b/GUI/MainForm.cs @@ -4,7 +4,7 @@ License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. - Copyright (C) 2009-2013 Michael Möller + Copyright (C) 2009-2020 Michael Möller Copyright (C) 2010 Paul Werelds Copyright (C) 2012 Prince Samuel @@ -575,12 +575,19 @@ namespace OpenHardwareMonitor.GUI { } private void SaveConfiguration() { - plotPanel.SetCurrentSettings(); - foreach (TreeColumn column in treeView.Columns) - settings.SetValue("treeView.Columns." + column.Header + ".Width", - column.Width); + if (settings == null) + return; - this.settings.SetValue("listenerPort", server.ListenerPort); + if (plotPanel != null) { + plotPanel.SetCurrentSettings(); + foreach (TreeColumn column in treeView.Columns) + settings.SetValue("treeView.Columns." + column.Header + ".Width", + column.Width); + } + + if (server != null) { + this.settings.SetValue("listenerPort", server.ListenerPort); + } string fileName = Path.ChangeExtension( System.Windows.Forms.Application.ExecutablePath, ".config"); diff --git a/Properties/AssemblyVersion.cs b/Properties/AssemblyVersion.cs index 86720cc..5265d1f 100644 --- a/Properties/AssemblyVersion.cs +++ b/Properties/AssemblyVersion.cs @@ -10,5 +10,5 @@ using System.Reflection; -[assembly: AssemblyVersion("0.9.0.0")] -[assembly: AssemblyInformationalVersion("0.9.0.0")] \ No newline at end of file +[assembly: AssemblyVersion("0.9.1.0")] +[assembly: AssemblyInformationalVersion("0.9.1.0")] \ No newline at end of file