Refactor VM Switch initialization logic

Move the `Initialize-VMSwitchData` function call from the main UI script into the `Initialize-UIDefaults` function.

This change centralizes the UI default initialization logic within the core module, improving code organization and ensuring VM Switch data is loaded at the correct time.
This commit is contained in:
rbalsleyMSFT
2025-06-19 19:16:11 -07:00
parent 244aba88d3
commit ca0a51ec15
2 changed files with 37 additions and 37 deletions
-2
View File
@@ -131,8 +131,6 @@ $window.Add_Loaded({
Initialize-DynamicUIElements -State $script:uiState
Initialize-VMSwitchData -State $script:uiState
Register-EventHandlers -State $script:uiState
})