diff -r 07d44b20bbd4 -r 46c056e76130 GUI/MainForm.cs --- a/GUI/MainForm.cs Sun Aug 04 06:54:46 2013 +0000 +++ b/GUI/MainForm.cs Sun Aug 11 21:26:56 2013 +0000 @@ -66,6 +66,9 @@ private UserOption runWebServer; private HttpServer server; + private UserOption logSensors; + private Logger logger; + private bool selectionDragging = false; public MainForm() { @@ -277,6 +280,10 @@ server.StopHTTPListener(); }; + logSensors = new UserOption("logSensorsMenuItem", false, logSensorsMenuItem, + settings); + logger = new Logger(computer); + InitializePlotForm(); startupMenuItem.Visible = startupManager.IsAvailable; @@ -500,6 +507,9 @@ if (wmiProvider != null) wmiProvider.Update(); + + if (logSensors.Value) + logger.Log(); } private void SaveConfiguration() {