summaryrefslogtreecommitdiff
path: root/systray.go
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2018-06-20 00:17:31 +0200
committerRuben Pollan <meskio@sindominio.net>2018-06-20 00:17:31 +0200
commit0358eda7e3b56282383877f82aab1abc96c7f627 (patch)
treeb5b65a9fe22ae37390ffc627c4379a2fb8bee067 /systray.go
parent6aa6b0cd01212a1317b87b9b7d8db60fa787de8c (diff)
[feat] display systray and bitmaskd version in about
- Resolves: #47
Diffstat (limited to 'systray.go')
-rw-r--r--systray.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/systray.go b/systray.go
index add1ff2..dd8a77c 100644
--- a/systray.go
+++ b/systray.go
@@ -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()