diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-12-31 19:45:03 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-12-31 19:45:03 +0530 |
commit | 93d016203e148b7a4402ca3b3abcfecbb2dfcbdb (patch) | |
tree | f1e73a07ee16152602c982a0fbfa0a9c38f3912c /main.go | |
parent | ed96335a7fcbda1afb31bff33b0fa77021771b3c (diff) |
hyperlinking the URL for the server for easy access
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -97,7 +97,7 @@ func onActivate(app *gtk.Application) { // do this after server starts on = true buttonSwitch.SetLabel("Stop") - statusLabel.SetText(fmt.Sprintf("Serving\n%s\nOn http://localhost:%s", dir, port)) + statusLabel.SetMarkup(fmt.Sprintf("Serving\n%s\nOn <a href='http://localhost:%s'>http://localhost:%s</a>", dir, dir, port)) browseButton.SetCanFocus(false) portInput.SetEditable(false) portInput.SetCanFocus(false) |