From 8e8bfe5ae8416671e13d62a2a4e603114a89db21 Mon Sep 17 00:00:00 2001 From: Useless Guru <30080938+UselessGuru@users.noreply.github.com> Date: Sat, 3 Sep 2022 14:27:09 +0200 Subject: [PATCH] Update Include.psm1 Less flickering --- Includes/Include.psm1 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Includes/Include.psm1 b/Includes/Include.psm1 index fd6a455087..95b1a427c4 100644 --- a/Includes/Include.psm1 +++ b/Includes/Include.psm1 @@ -990,11 +990,7 @@ Function Write-Message { If ($Config.LogToScreen -and $Level -in $Config.LogToScreen) { # Update status text box in legacy GUI - If ($Variables.LabelStatus) { - # Keep only 100 lines, more lines impact performance - $Variables.LabelStatus.Lines = @($Variables.LabelStatus.Lines | Select-Object -Last 100) - $Variables.LabelStatus.AppendText("$Date $($Level.ToUpper()): $Message`n") - } + If ($Variables.LabelStatus) { $Variables.LabelStatus.AppendText("`r`n$Date $($Level.ToUpper()): $Message") } # Write to console Switch ($Level) {