mirror of
https://github.com/rbalsleyMSFT/FFU.git
synced 2026-06-14 02:09:35 -06:00
562529a26b
- Updated functions to accept a State parameter for improved scope management. - Replaced direct window control access with State object references for better encapsulation and consistency. - Ensured proper handling of UI elements within the context of the State object. Refactors UI functions to use a State parameter Improves scope management and encapsulation by passing a `State` object to UI-interacting functions. This change modifies several functions, including `Get-ModelsForMake` and `Update-CopyButtonState`, to accept a `State` parameter. It replaces direct access to UI controls via `$window.FindName` with references from the `State` object, leading to more consistent and maintainable code.