aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-12-31 19:45:03 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-12-31 19:45:03 +0530
commit93d016203e148b7a4402ca3b3abcfecbb2dfcbdb (patch)
treef1e73a07ee16152602c982a0fbfa0a9c38f3912c /main.go
parented96335a7fcbda1afb31bff33b0fa77021771b3c (diff)
hyperlinking the URL for the server for easy access
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 9b60cf2..071063a 100644
--- a/main.go
+++ b/main.go
@@ -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)