Skip to content
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

fix: clearRecentDocuments role on Windows #19599

Merged
merged 2 commits into from Aug 5, 2019
Merged

Conversation

codebytere
Copy link
Member

@codebytere codebytere commented Aug 2, 2019

Description of Change

Closes #19588.

Per documentation, SHAddToRecentDocs can also be used to clear all recent documents. This switches our impl to use that fn and passes nullptr as the second argument to clear all recent docs:

Set this parameter to NULL to clear all usage data on all items.

cc @deermichel

Checklist

Release Notes

Notes: Fixed the clearRecentDocuments MenuItem role on Windows.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Aug 2, 2019
@codebytere codebytere changed the title fix: clear recent documents on windows fix: clearRecentDocuments role on Windows Aug 2, 2019
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Aug 3, 2019
shell/browser/browser_win.cc Outdated Show resolved Hide resolved
@codebytere codebytere requested a review from zcbenz August 5, 2019 05:36
@codebytere codebytere merged commit f0396c1 into master Aug 5, 2019
@release-clerk
Copy link

release-clerk bot commented Aug 5, 2019

Release Notes Persisted

Fixed the clearRecentDocuments MenuItem role on Windows.

@codebytere codebytere deleted the fix-clear-recent-win branch August 5, 2019 22:11
@trop
Copy link
Contributor

trop bot commented Aug 5, 2019

I was unable to backport this PR to "5-0-x" cleanly;
you will need to perform this backport manually.

@trop
Copy link
Contributor

trop bot commented Aug 5, 2019

I have automatically backported this PR to "6-0-x", please check out #19637

@trop
Copy link
Contributor

trop bot commented Aug 5, 2019

I have automatically backported this PR to "7-0-x", please check out #19638

codebytere added a commit that referenced this pull request Aug 6, 2019
* fix: clear recent documents on windows

* chore: don't check for version < win 7
@trop trop bot removed the in-flight/7-0-x label Aug 6, 2019
@trop
Copy link
Contributor

trop bot commented Aug 6, 2019

A maintainer has manually backported this PR to "5-0-x", please check out #19640

codebytere added a commit that referenced this pull request Aug 6, 2019
* fix: clear recent documents on windows

* chore: don't check for version < win 7
@sofianguy sofianguy added this to Fixed in 6.0.1 in 6.1.x Aug 7, 2019
@sofianguy sofianguy added this to Fixed in 5.0.9 in 5.0.x Aug 7, 2019
@sofianguy sofianguy added this to 7.0.0-beta.2 in 7.2.x Aug 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform/windows semver/patch backwards-compatible bug fixes
Projects
No open projects
5.0.x
Fixed in 5.0.9
6.1.x
Fixed in 6.0.1
7.2.x
Fixed in 7.0.0-beta.2
Development

Successfully merging this pull request may close these issues.

Win: app.clearRecentDocuments does not work
2 participants