From 2f7fc919566b777eea7e62d24aeb48dcb6862296 Mon Sep 17 00:00:00 2001 From: leileizhang Date: Fri, 30 Jan 2026 14:48:09 +0800 Subject: [PATCH] Fix OOBE pages Launch buttons remain clickable when modules are disabled (#44736) ## Summary of the Pull Request Fixes the issue where Launch/Open buttons on OOBE (Welcome to PowerToys) pages remain clickable even when the corresponding module is disabled. Added enabled state checks to the following OOBE pages: - **OobeColorPicker** - checks `ModuleType.ColorPicker` - **OobeEnvironmentVariables** - checks `ModuleType.EnvironmentVariables` - **OobeHosts** - checks `ModuleType.Hosts` - **OobeRun** - checks `ModuleType.PowerLauncher` - **OobeRegistryPreview** - checks `ModuleType.RegistryPreview` - **OobeShortcutGuide** - checks `ModuleType.ShortcutGuide` image ## PR Checklist - [x] Closes: #44737 - [ ] **Communication:** I've discussed this with core contributors already. If the work hasn't been agreed, this work might be rejected - [ ] **Tests:** Added/updated and all pass - [ ] **Localization:** All end-user-facing strings can be localized - [ ] **Dev docs:** Added/updated - [ ] **New binaries:** Added on the required places - [ ] [JSON for signing](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ESRPSigning_core.json) for new binaries - [ ] [WXS for installer](https://github.com/microsoft/PowerToys/blob/main/installer/PowerToysSetup/Product.wxs) for new binaries and localization folder - [ ] [YML for CI pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ci/templates/build-powertoys-steps.yml) for new test projects - [ ] [YML for signed pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/release.yml) - [ ] **Documentation updated:** If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/windows-uwp/tree/docs/hub/powertoys) and link it here: #xxx ## Detailed Description of the Pull Request / Additional comments ## Validation Steps Performed --- .../Settings.UI/SettingsXAML/OOBE/Views/OobeColorPicker.xaml | 1 + .../SettingsXAML/OOBE/Views/OobeColorPicker.xaml.cs | 5 +++++ .../SettingsXAML/OOBE/Views/OobeEnvironmentVariables.xaml | 1 + .../SettingsXAML/OOBE/Views/OobeEnvironmentVariables.xaml.cs | 5 +++++ .../Settings.UI/SettingsXAML/OOBE/Views/OobeHosts.xaml | 1 + .../Settings.UI/SettingsXAML/OOBE/Views/OobeHosts.xaml.cs | 5 +++++ .../SettingsXAML/OOBE/Views/OobeRegistryPreview.xaml | 1 + .../SettingsXAML/OOBE/Views/OobeRegistryPreview.xaml.cs | 5 +++++ .../Settings.UI/SettingsXAML/OOBE/Views/OobeRun.xaml | 1 + .../Settings.UI/SettingsXAML/OOBE/Views/OobeRun.xaml.cs | 5 +++++ .../SettingsXAML/OOBE/Views/OobeShortcutGuide.xaml | 1 + .../SettingsXAML/OOBE/Views/OobeShortcutGuide.xaml.cs | 5 +++++ 12 files changed, 36 insertions(+) diff --git a/src/settings-ui/Settings.UI/SettingsXAML/OOBE/Views/OobeColorPicker.xaml b/src/settings-ui/Settings.UI/SettingsXAML/OOBE/Views/OobeColorPicker.xaml index 115bdd417a..1700a3b05f 100644 --- a/src/settings-ui/Settings.UI/SettingsXAML/OOBE/Views/OobeColorPicker.xaml +++ b/src/settings-ui/Settings.UI/SettingsXAML/OOBE/Views/OobeColorPicker.xaml @@ -21,6 +21,7 @@