diff options
author | Ruben Pollan <meskio@sindominio.net> | 2018-06-20 00:17:31 +0200 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2018-06-20 00:17:31 +0200 |
commit | 0358eda7e3b56282383877f82aab1abc96c7f627 (patch) | |
tree | b5b65a9fe22ae37390ffc627c4379a2fb8bee067 /systray.go | |
parent | 6aa6b0cd01212a1317b87b9b7d8db60fa787de8c (diff) |
[feat] display systray and bitmaskd version in about
- Resolves: #47
Diffstat (limited to 'systray.go')
-rw-r--r-- | systray.go | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -16,6 +16,7 @@ package main import ( + "fmt" "log" "time" @@ -115,7 +116,14 @@ func (bt *bmTray) onReady() { bt.conf.setDonated() open.Run("https://riseup.net/vpn/donate") case <-mAbout.ClickedCh: - bt.notify.about() + bitmaskVersion, err := bt.bm.Version() + if err != nil { + log.Printf("Error getting version: %v", err) + bt.notify.about(version) + } else { + versionStr := fmt.Sprintf("%s (bitmaskd %s)", version, bitmaskVersion) + bt.notify.about(versionStr) + } case <-mQuit.ClickedCh: systray.Quit() |