mirror of
https://github.com/rbalsleyMSFT/FFU.git
synced 2026-06-14 02:09:35 -06:00
Fixes download logic for filtered driver lists
Updates the download function to source selected drivers from the complete data model instead of the UI's filtered view. This corrects an issue where selected drivers would be excluded from the download operation if they were hidden by a filter.
This commit is contained in:
@@ -521,7 +521,7 @@ function Invoke-DownloadSelectedDrivers {
|
||||
[object]$Button
|
||||
)
|
||||
|
||||
$selectedDrivers = @($State.Controls.lstDriverModels.Items | Where-Object { $_.IsSelected })
|
||||
$selectedDrivers = @($State.Data.allDriverModels | Where-Object { $_.IsSelected })
|
||||
if (-not $selectedDrivers) {
|
||||
[System.Windows.MessageBox]::Show("No drivers selected to download.", "Download Drivers", "OK", "Information")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user