Refactor UI config logic into a core module

Moves the logic for saving and loading configuration files from the main UI script into the `FFUUI.Core.Config` module. This change improves modularity and separation of concerns, making the code easier to maintain.

The main `BuildFFUVM_UI.ps1` script is simplified, with event handlers now calling the new, dedicated functions in the core module to manage configuration state.

Also corrects the path for the `FFUConfig.json` file.
This commit is contained in:
rbalsleyMSFT
2025-06-20 14:25:39 -07:00
parent 9871d1c23b
commit d0c5ddc9c7
4 changed files with 358 additions and 353 deletions
@@ -144,6 +144,8 @@ function Initialize-UIControls {
$State.Controls.txtDriversJsonPath = $window.FindName('txtDriversJsonPath')
$State.Controls.btnBrowseDriversJsonPath = $window.FindName('btnBrowseDriversJsonPath')
$State.Controls.chkUpdateADK = $window.FindName('chkUpdateADK')
$State.Controls.btnLoadConfig = $window.FindName('btnLoadConfig')
$State.Controls.btnBuildConfig = $window.FindName('btnBuildConfig')
}
function Initialize-VMSwitchData {