aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-08-28 20:38:30 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2019-08-30 08:47:21 -0600
commit2f83e4df50d954decf9abe29197aaecb68a2da7b (patch)
tree8e4cc0d04e49e5a2bfc60c7dfd11434c05b13242 /ui
parentversion: bump (diff)
downloadwireguard-windows-2f83e4df50d954decf9abe29197aaecb68a2da7b.tar.xz
wireguard-windows-2f83e4df50d954decf9abe29197aaecb68a2da7b.zip
version: use ProductName and ProductVersion as 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 b56389bb..732531d4 100644
--- a/ui/aboutdialog.go
+++ b/ui/aboutdialog.go
@@ -83,7 +83,8 @@ func runAboutDialog(owner walk.Form) error {
return err
}
detailsLbl.SetTextAlignment(walk.AlignHCenterVNear)
- 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))
+ _, appVersion := version.RunningNameVersion()
+ detailsLbl.SetText(fmt.Sprintf("App version: %s\nGo backend version: %s\nGo version: %s\nOperating system: %s\nArchitecture: %s", appVersion, device.WireGuardGoVersion, strings.TrimPrefix(runtime.Version(), "go"), version.OsName(), runtime.GOARCH))
copyrightLbl, err := walk.NewTextLabel(dlg)
if err != nil {