Fix import / export config issue (#4189)

* apply toggle fix

* apply fix that disables all toggles outside of config
This commit is contained in:
Eren
2026-03-12 00:23:32 +03:00
committed by GitHub
parent 34f29dd04c
commit 2bb007b6ff
3 changed files with 22 additions and 7 deletions

View File

@@ -94,7 +94,14 @@ function Invoke-WPFImpex {
Update-WinUtilSelections -flatJson $flattenedJson
if (!$PARAM_NOUI) {
Reset-WPFCheckBoxes -doToggles $true
# Set flag so toggle Checked/Unchecked events don't trigger registry writes
# while we're programmatically restoring UI state from the imported config
$sync.ImportInProgress = $true
try {
Reset-WPFCheckBoxes -doToggles $true
} finally {
$sync.ImportInProgress = $false
}
}
}
} catch {