From 131bd63a5b8240df62b6c960205c67f92e902ed1 Mon Sep 17 00:00:00 2001 From: rbalsleyMSFT <53497092+rbalsleyMSFT@users.noreply.github.com> Date: Sat, 7 Jun 2025 19:07:05 -0700 Subject: [PATCH] Refactor MainThreadLogPath to use script:uiState.LogFilePath for consistency --- FFUDevelopment/BuildFFUVM_UI.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/FFUDevelopment/BuildFFUVM_UI.ps1 b/FFUDevelopment/BuildFFUVM_UI.ps1 index a7e8f53..bd188f8 100644 --- a/FFUDevelopment/BuildFFUVM_UI.ps1 +++ b/FFUDevelopment/BuildFFUVM_UI.ps1 @@ -2076,7 +2076,7 @@ $window.Add_Loaded({ -CompletedStatusText 'Completed' ` -ErrorStatusPrefix 'Error: ' ` -WindowObject $window ` - -MainThreadLogPath $global:LogFile + -MainThreadLogPath $script:uiState.LogFilePath $overallSuccess = $true # Check if any item has an error status after processing @@ -2470,7 +2470,7 @@ $window.Add_Loaded({ -CompletedStatusText "Completed" ` -ErrorStatusPrefix "Error: " ` -WindowObject $window ` - -MainThreadLogPath $global:LogFile + -MainThreadLogPath $script:uiState.LogFilePath # Final status update (handled by Invoke-ParallelProcessing) $script:uiState.Controls.pbOverallProgress.Visibility = 'Collapsed' @@ -2565,7 +2565,7 @@ $window.Add_Loaded({ -CompletedStatusText "Copied" ` -ErrorStatusPrefix "Error: " ` -WindowObject $window ` - -MainThreadLogPath $global:LogFile + -MainThreadLogPath $script:uiState.LogFilePath # Final status update (handled by Invoke-ParallelProcessing) $script:uiState.Controls.pbOverallProgress.Visibility = 'Collapsed'