From 5628f6e0b747fa441d22fb387050cd2a43e22c74 Mon Sep 17 00:00:00 2001 From: Jeffrey <9938813+Raphire@users.noreply.github.com> Date: Fri, 12 Jun 2026 17:41:30 +0200 Subject: [PATCH] Add logging around winget app retrieval and increase timeout to 20s --- Scripts/GUI/MainWindow-AppSelection.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Scripts/GUI/MainWindow-AppSelection.ps1 b/Scripts/GUI/MainWindow-AppSelection.ps1 index 8293ffe..386b75a 100644 --- a/Scripts/GUI/MainWindow-AppSelection.ps1 +++ b/Scripts/GUI/MainWindow-AppSelection.ps1 @@ -515,9 +515,11 @@ function Load-AppsIntoMainUI { $listOfApps = "" if ($OnlyInstalledAppsBox.IsChecked -and ($script:WingetInstalled -eq $true)) { - $listOfApps = GetInstalledAppsViaWinget -TimeOut 10 -NonBlocking + Write-Host "Retrieving installed apps via winget..." + $listOfApps = GetInstalledAppsViaWinget -TimeOut 20 -NonBlocking if ($null -eq $listOfApps) { + Write-Warning "WinGet returned no data (command timed out or failed)" Show-MessageBox -Message 'Unable to load list of installed apps via WinGet.' -Title 'Error' -Button 'OK' -Icon 'Error' | Out-Null $OnlyInstalledAppsBox.IsChecked = $false }