diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-11-21 23:13:19 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-11-22 22:00:32 +0100 |
commit | cfde14234176b750da47890866f3d1023aa2e3a5 (patch) | |
tree | 1cd1ac5bbad938ddc78465264f72d45723a28fe7 /ui | |
parent | conf: always use 64-bit registry view on 64-bit machines (diff) | |
download | wireguard-windows-cfde14234176b750da47890866f3d1023aa2e3a5.tar.xz wireguard-windows-cfde14234176b750da47890866f3d1023aa2e3a5.zip |
version: unify architecture string handling
Always report native architecture and use "x86" instead of "386" for all
identification strings, except when explicitly stating the Go verison.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/aboutdialog.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/aboutdialog.go b/ui/aboutdialog.go index 007ddea6..f266a29c 100644 --- a/ui/aboutdialog.go +++ b/ui/aboutdialog.go @@ -95,7 +95,7 @@ func runAboutDialog(owner walk.Form) error { return err } detailsLbl.SetTextAlignment(walk.AlignHCenterVNear) - detailsLbl.SetText(l18n.Sprintf("App version: %s\nGo backend version: %s\nGo version: %s\nOperating system: %s\nArchitecture: %s", version.Number, device.WireGuardGoVersion, strings.TrimPrefix(runtime.Version(), "go"), version.OsName(), runtime.GOARCH)) + detailsLbl.SetText(l18n.Sprintf("App version: %s\nGo backend version: %s\nGo version: %s-%s\nOperating system: %s\nArchitecture: %s", version.Number, device.WireGuardGoVersion, strings.TrimPrefix(runtime.Version(), "go"), runtime.GOARCH, version.OsName(), version.NativeArch())) copyrightLbl, err := walk.NewTextLabel(showingAboutDialog) if err != nil { |