Skip to content
Snippets Groups Projects
Commit 840fe313 authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Show progress percentage in tray icon tooltip.

Refers to #2
parent 420b1786
No related branches found
No related tags found
No related merge requests found
...@@ -199,7 +199,7 @@ namespace ATxTray ...@@ -199,7 +199,7 @@ namespace ATxTray
if ((DateTime.Now - _status.LastStatusUpdate).TotalSeconds < 60) if ((DateTime.Now - _status.LastStatusUpdate).TotalSeconds < 60)
heartBeat = "OK"; heartBeat = "OK";
if (_txInProgress) if (_txInProgress)
txProgress = _txProgressPct.ToString(); txProgress = $"{_txProgressPct}%";
} }
UpdateTrayIcon(); UpdateTrayIcon();
...@@ -207,7 +207,7 @@ namespace ATxTray ...@@ -207,7 +207,7 @@ namespace ATxTray
if (!_statusChanged) if (!_statusChanged)
return; return;
UpdateHoverText($"AutoTx [svc={serviceRunning}] [hb={heartBeat}] [tx={txProgress}%]"); UpdateHoverText($"AutoTx [svc={serviceRunning}] [hb={heartBeat}] [tx={txProgress}]");
} }
private void MiExitClick(object sender, EventArgs e) { private void MiExitClick(object sender, EventArgs e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment