mirror of
https://github.com/rbalsleyMSFT/FFU.git
synced 2026-06-14 02:09:35 -06:00
Updates the UI logic to automatically enable the 'Install Apps' option when 'Install Winget Apps' or 'Define Apps Script Variables' is selected.
This ensures the main application installation feature remains active when any of its dependent options are chosen, creating a more consistent user experience.
This commit is contained in:
@@ -202,8 +202,8 @@ function Update-ApplicationPanelVisibility {
|
||||
[string]$TriggeringControlName # Optional: to know which control initiated the change
|
||||
)
|
||||
|
||||
# If BYO apps is checked, ensure the main Install Apps is also checked.
|
||||
if ($State.Controls.chkBringYourOwnApps.IsChecked) {
|
||||
# If BYO Apps, Winget Apps, or Define Apps Script Variables is checked, force Install Apps to be checked
|
||||
if ($State.Controls.chkBringYourOwnApps.IsChecked -or $State.Controls.chkInstallWingetApps.IsChecked -or $State.Controls.chkDefineAppsScriptVariables.IsChecked) {
|
||||
$State.Controls.chkInstallApps.IsChecked = $true
|
||||
}
|
||||
|
||||
@@ -274,8 +274,8 @@ function Update-InstallAppsState {
|
||||
$installAppsChk.IsChecked = $false
|
||||
}
|
||||
|
||||
# If BYO is checked, it overrides the restoration and keeps Install Apps checked.
|
||||
if ($State.Controls.chkBringYourOwnApps.IsChecked) {
|
||||
# If BYO, Winget, or Apps Script Variables are checked, it overrides the restoration and keeps Install Apps checked.
|
||||
if ($State.Controls.chkBringYourOwnApps.IsChecked -or $State.Controls.chkInstallWingetApps.IsChecked -or $State.Controls.chkDefineAppsScriptVariables.IsChecked) {
|
||||
$installAppsChk.IsChecked = $true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user