aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-02 21:18:34 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-02 21:29:02 +0200
commit547a3374d581483ec908f1a9fc3b8b8d40248e67 (patch)
tree3be1faf9f14ca8ef03d7d086756a69a5ba1271d3 /ui
parentui: use system icons instead of green and red dots (diff)
downloadwireguard-windows-547a3374d581483ec908f1a9fc3b8b8d40248e67.tar.xz
wireguard-windows-547a3374d581483ec908f1a9fc3b8b8d40248e67.zip
ui: fix version strings
Diffstat (limited to 'ui')
-rw-r--r--ui/aboutdialog.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/aboutdialog.go b/ui/aboutdialog.go
index 7fa9231a..0b6a294d 100644
--- a/ui/aboutdialog.go
+++ b/ui/aboutdialog.go
@@ -8,6 +8,7 @@ package ui
import (
"fmt"
"runtime"
+ "strings"
"github.com/lxn/walk"
"github.com/lxn/win"
@@ -47,7 +48,7 @@ func onAbout(owner walk.Form) {
detailsLbl, _ := walk.NewTextLabel(dlg)
detailsLbl.SetTextAlignment(walk.AlignHCenterVNear)
- detailsLbl.SetText(fmt.Sprintf("App version: %s\nGo backend version: %s\nGolang version: %s %s\n%s", version.RunningVersion(), device.WireGuardGoVersion, runtime.Version(), runtime.GOARCH, version.OsName()))
+ detailsLbl.SetText(fmt.Sprintf("App version: %s\nGo backend version: %s\nGo version: %s\nOperating system: %s\nArchitecture: %s", version.RunningVersion(), device.WireGuardGoVersion, strings.TrimPrefix(runtime.Version(), "go"), version.OsName(), runtime.GOARCH))
copyrightLbl, _ := walk.NewTextLabel(dlg)
copyrightFont, _ := walk.NewFont("Segoe UI", 7, 0)