mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-06-15 14:28:24 +00:00
Add logging around winget app retrieval and increase timeout to 20s
This commit is contained in:
@@ -515,9 +515,11 @@ function Load-AppsIntoMainUI {
|
|||||||
$listOfApps = ""
|
$listOfApps = ""
|
||||||
|
|
||||||
if ($OnlyInstalledAppsBox.IsChecked -and ($script:WingetInstalled -eq $true)) {
|
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) {
|
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
|
Show-MessageBox -Message 'Unable to load list of installed apps via WinGet.' -Title 'Error' -Button 'OK' -Icon 'Error' | Out-Null
|
||||||
$OnlyInstalledAppsBox.IsChecked = $false
|
$OnlyInstalledAppsBox.IsChecked = $false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user