From 1d532126e18d063a731903f34bb84f1db6e8c4b1 Mon Sep 17 00:00:00 2001 From: Useless Guru <30080938+UselessGuru@users.noreply.github.com> Date: Wed, 11 Sep 2024 08:58:29 +0200 Subject: [PATCH] Update UG-Miner.ps1 --- UG-Miner.ps1 | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/UG-Miner.ps1 b/UG-Miner.ps1 index 1d3a6508..b18f820a 100644 --- a/UG-Miner.ps1 +++ b/UG-Miner.ps1 @@ -666,11 +666,13 @@ Function MainLoop { $Message = "System activity detected.
Mining is suspended until system is idle for $($Config.IdleSec) second$(If ($Config.IdleSec -ne 1) { "s" })." Write-Message -Level Verbose ($Message -replace "
", " ") Stop-Core - If ($LegacyGUIform) { Update-GUIstatus } + If ($LegacyGUIform) { + Update-GUIstatus - $LegacyGUIminingSummaryLabel.Text = "" - ($Message -split '
').ForEach({ $LegacyGUIminingSummaryLabel.Text += "$_`r`n" }) - $LegacyGUIminingSummaryLabel.ForeColor = [System.Drawing.Color]::Black + $LegacyGUIminingSummaryLabel.Text = "" + ($Message -split '
').ForEach({ $LegacyGUIminingSummaryLabel.Text += "$_`r`n" }) + $LegacyGUIminingSummaryLabel.ForeColor = [System.Drawing.Color]::Black + } $Variables.Summary = $Message Remove-Variable Message @@ -898,7 +900,7 @@ Function MainLoop { $host.UI.RawUI.WindowTitle = "$($Variables.Branding.ProductLabel) $($Variables.Branding.Version) - Runtime: {0:dd} days {0:hh} hrs {0:mm} mins - Path: $($Variables.Mainpath)" -f [TimeSpan]([DateTime]::Now.ToUniversalTime() - $Variables.ScriptStartTime) - If ($LegacyGUIform) { + If ($LegacyGUIform -and -not $Variables.SuspendCycle) { $LegacyGUIform.Text = $host.UI.RawUI.WindowTitle If ($Variables.MyIP) {