Skip to content

Commit 10acfe8

Browse files
committed
add 'open' menu for web server
1 parent a450edc commit 10acfe8

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

OpenHardwareMonitor/UI/MainForm.Designer.cs

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

OpenHardwareMonitor/UI/MainForm.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,10 @@ public MainForm()
272272
Server.StopHttpListener();
273273
};
274274

275+
openWebServerMenuItem.Click += (s, e) => {
276+
System.Diagnostics.Process.Start("http://localhost:" + Server.ListenerPort);
277+
};
278+
275279
authWebServerMenuItem.Checked = _settings.GetValue("authenticationEnabled", false);
276280

277281
_logSensors = new UserOption("logSensorsMenuItem", false, logSensorsMenuItem, _settings);

0 commit comments

Comments
 (0)