From 840fe313425bb55489a7478bcec3340c922aa11e Mon Sep 17 00:00:00 2001
From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch>
Date: Tue, 6 Feb 2018 14:51:50 +0100
Subject: [PATCH] Show progress percentage in tray icon tooltip.

Refers to #2
---
 ATxTray/AutoTxTray.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ATxTray/AutoTxTray.cs b/ATxTray/AutoTxTray.cs
index e873968..403059d 100644
--- a/ATxTray/AutoTxTray.cs
+++ b/ATxTray/AutoTxTray.cs
@@ -199,7 +199,7 @@ namespace ATxTray
                 if ((DateTime.Now - _status.LastStatusUpdate).TotalSeconds < 60)
                     heartBeat = "OK";
                 if (_txInProgress)
-                    txProgress = _txProgressPct.ToString();
+                    txProgress = $"{_txProgressPct}%";
             }
 
             UpdateTrayIcon();
@@ -207,7 +207,7 @@ namespace ATxTray
             if (!_statusChanged)
                 return;
 
-            UpdateHoverText($"AutoTx [svc={serviceRunning}] [hb={heartBeat}] [tx={txProgress}%]");
+            UpdateHoverText($"AutoTx [svc={serviceRunning}] [hb={heartBeat}] [tx={txProgress}]");
         }
 
         private void MiExitClick(object sender, EventArgs e) {
-- 
GitLab