mirror of
https://github.com/rbalsleyMSFT/FFU.git
synced 2026-06-14 02:09:35 -06:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user