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 JumpList being created too soon #8499

Merged
merged 1 commit into from Oct 2, 2020

Conversation

lanfeust69
Copy link
Contributor

@lanfeust69 lanfeust69 commented Sep 30, 2020

Fixes #8421

✒️ I contribute this code under The Developer Certificate of Origin.

@codecov
Copy link

codecov bot commented Sep 30, 2020

Codecov Report

Merging #8499 into master will increase coverage by 0.05%.
The diff coverage is 81.25%.

@@            Coverage Diff             @@
##           master    #8499      +/-   ##
==========================================
+ Coverage   54.75%   54.80%   +0.05%     
==========================================
  Files         898      898              
  Lines       64251    64255       +4     
  Branches    11440    11478      +38     
==========================================
+ Hits        35179    35218      +39     
+ Misses      26390    26333      -57     
- Partials     2682     2704      +22     
Flag Coverage Δ
#production 41.72% <81.25%> (+0.12%) ⬆️
#tests 94.81% <ø> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Copy link
Member

@mstv mstv left a comment

Choose a reason for hiding this comment

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

Should work, have not run it.

GitUI/CommandsDialogs/FormBrowse.cs Show resolved Hide resolved
GitUI/WindowsJumpListManager.cs Outdated Show resolved Hide resolved
Copy link
Member

@RussKie RussKie left a comment

Choose a reason for hiding this comment

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

👍 works for me

GitUI/WindowsJumpListManager.cs Outdated Show resolved Hide resolved
Currently, at least on some systems, there is no process-level main
window yet when FormBrowse is loaded, so the creation of the JumpList
fails ("A valid active Window is needed").

So we wait for the OnActivated(), where this seems to be always OK.
We also need to keep track of any call to AddToRecent() it it happened
before actual JumpList creation.

Fixes gitextensions#8421
Copy link
Member

@mstv mstv left a comment

Choose a reason for hiding this comment

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

Please fill in the PR description. We have a template. At least the very helpful "Fixes #8421" and the DCO clause should be there.

@lanfeust69
Copy link
Contributor Author

Please fill in the PR description. We have a template. At least the very helpful "Fixes #8421" and the DCO clause should be there.

Indeed, I created the PR through GitExtensions itself, and it didn't use the template 🙂

Note that the "Fixes" part was already in the commit message, though.

@RussKie RussKie merged commit c713a39 into gitextensions:master Oct 2, 2020
@ghost ghost added this to the 4.0 milestone Oct 2, 2020
@RussKie
Copy link
Member

RussKie commented Oct 2, 2020

Thank you

@lanfeust69 lanfeust69 deleted the fix_jumplist branch October 2, 2020 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JumpList still not working
3 participants