-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
[New+]Don't override New actions from Explorer on Windows 10 #36467
Open
jaimecbernardo
wants to merge
5
commits into
main
Choose a base branch
from
dev/jaime/newplus-fix-overriding-new-folder
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+10
−3
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@cgaarden, FYI. 😄 |
jaimecbernardo
changed the title
[New+]Don't override New actions from Explorer
[New+]Don't override New actions from Explorer on Windows 10
Dec 20, 2024
stefansjfw
approved these changes
Dec 20, 2024
jaimecbernardo
commented
Dec 20, 2024
src/modules/NewPlus/NewShellExtensionContextMenu.win10/shell_context_menu_win10.cpp
Show resolved
Hide resolved
…ontext_menu_win10.cpp
src/modules/NewPlus/NewShellExtensionContextMenu.win10/shell_context_menu_win10.cpp
Fixed
Show fixed
Hide fixed
src/modules/NewPlus/NewShellExtensionContextMenu.win10/shell_context_menu_win10.cpp
Fixed
Show fixed
Hide fixed
This comment has been minimized.
This comment has been minimized.
jaimecbernardo
commented
Dec 20, 2024
src/modules/NewPlus/NewShellExtensionContextMenu.win10/shell_context_menu_win10.cpp
Outdated
Show resolved
Hide resolved
…ontext_menu_win10.cpp
src/modules/NewPlus/NewShellExtensionContextMenu.win10/shell_context_menu_win10.cpp
Fixed
Show fixed
Hide fixed
This comment has been minimized.
This comment has been minimized.
davidegiacometti
approved these changes
Dec 20, 2024
Sweet! Thank you @jaimecbernardo for this fixing this! :-) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary of the Pull Request
New+ is currently trying to respond to verbs that don't correspond to the submenu item call in InvokeCommand. Checking old documentation for InvokeCommand, we can see that we're missing a check in there.
https://learn.microsoft.com/en-us/previous-versions//bb776881(v=vs.85)?redirectedfrom=MSDN#invokecommand-method
PR Checklist
Detailed Description of the Pull Request / Additional comments
Just adds the check we require to make sure we're not responding to "string"-based verbs, according to the documentation.
Validation Steps Performed
Verified that on Windows 10 with this build it's possible to now call New Folder from the WIndows Explorer Ribbon and also through the Ctrl+Shift+N shortcut. Now a new folder gets created instead of the old one. Also tried to create a New text file from the ribbon and it worked. Also tried New+ features to make sure they were still working.