Skip to content

New+ Feature - Option to hide the built-in New context menu (37545 and 37946) #39843

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

cgaarden
Copy link
Contributor

@cgaarden cgaarden commented Jun 1, 2025

Summary of the Pull Request

New+ Add the option to hide the built-in New context menu via settings

Note: This setting requires PowerToys to be run as Administrator as it relies on updating the registry

PR Checklist

Detailed Description of the Pull Request / Additional comments

  1. Includes updates to PowerToys settings to update the registry to enable/disable the built-in New context menu
  2. Updated installer to reenable New context menu on uninstall

Validation Steps Performed

Windows 11 x64 and Windows 11 ARM64

  1. Settings UI
  2. Non elevated mode
  3. Elevated mode
  4. New+ enabled
  5. New+ disabled

Windows 10 x64
NOT tested. Do not have a Windows 10 key with me

Windows 11 x64, Non-elevated, New+ Disabled
image

Windows 11 x64, Non-elevated, New+ Enabled
image

image

Windows 11 x64, Elevated, New+ Enabled
image

image

@yeelam-gordon yeelam-gordon added the Product-New+ Refers to the New+ PowerToys Utility label Jun 10, 2025
@yeelam-gordon yeelam-gordon requested a review from Copilot June 10, 2025 04:46
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements the option to hide the built-in New context menu by adding registry update logic in the settings UI and ensuring the original context menu is restored on uninstall.

  • Updates the NewPlusViewModel with new registry read/write functions and properties to manage the built-in New context menu status.
  • Adds a new toggle and elevation warning InfoBar in the settings UI (NewPlusPage.xaml).
  • Extends the installer with a custom action to restore the built-in New context menu upon uninstallation.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/settings-ui/Settings.UI/ViewModels/NewPlusViewModel.cs New registry logic, properties, and methods to enable/disable the built-in New menu
src/settings-ui/Settings.UI/Strings/en-us/Resources.resw Added localized strings for the new toggle and elevation warning
src/settings-ui/Settings.UI/SettingsXAML/Views/NewPlusPage.xaml New toggle and InfoBar controls for managing the built-in New context menu
installer/PowerToysSetupCustomActions/CustomAction.def Added an export entry for the custom action
installer/PowerToysSetupCustomActions/CustomAction.cpp Implementation of the custom action to restore the built-in New context menu
installer/PowerToysSetup/Product.wxs Integrated the custom action into the installer sequence

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@cgaarden
Copy link
Contributor Author

Updated property notification per feedback

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Product-New+ Refers to the New+ PowerToys Utility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants