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

View menu icons fail to update #6086

Closed
DCFerg opened this issue Jan 10, 2019 · 3 comments
Closed

View menu icons fail to update #6086

DCFerg opened this issue Jan 10, 2019 · 3 comments
Assignees
Labels
🤓 good first issue status: reproducible type: bug 🐛 type: regression regression, normally to latest official release up-for-grabs Easy tasks for those looking to get involved. Refer to https://up-for-grabs.net/
Milestone

Comments

@DCFerg
Copy link
Contributor

DCFerg commented Jan 10, 2019

Current behaviour

When the following options in the View menu are toggled, the action takes place (the view changes) but the icon in the View menu is not updated until Git Extensions is refreshed (by clicking the refresh button, executing a fetch, etc):

  • Show remote branches
  • Show author date
  • Show relative date

Expected behaviour

When clicked, the icon state should toggle.

Steps to reproduce

Click the View dropdown menu.
See that the "Show remote branches" icon indicates that it is active.
Click "Show remote branches".
The View menu closes and remote branch names are no longer shown in the main view.

Click the View dropdown menu again.
See that the "Show remote branches" icon incorrectly indicates that it is active.
Click "Show remote branches".
The View menu closes and remote branch names are again shown in the main view.

Now repeat but refresh in the middle:

Click the View dropdown menu.
See that the "Show remote branches" icon indicates that it is active.
Click "Show remote branches".
The View menu closes and remote branch names are no longer shown in the main view.

Refresh Git Extensions by clicking the refresh icon that is below "Start" at the upper left.

Click the View dropdown menu.
See that the "Show remote branches" icon has been updated and now correctly indicates that it is not active.

"Show author date" and "Show relative date" can be tested in the same way.
And the problem occurs in reverse - starting with the feature being inactive and making it active; the icon doesn't update until a refresh is done.

Screenshots

Starting with this:
image
...click "Show remote branches", "Show author date", and "Show relative date".

Resulting state is this:
image
All three still indicate they are active but the remote branches are not shown and the dates are shown as actual, not relative.

Click refresh and the state is then this:
image
The icons have been updated in the View menu.

Did this work in previous version of GitExtensions

It was reported in #3730 and (#4367). Fix was merged for v2.51 in #4156.

Environment

  • Git Extensions 3.00.00.4433
  • Build fca7cf2
  • Git 2.20.1.windows.1
  • Microsoft Windows NT 10.0.17134.0
  • .NET Framework 4.7.3221.0
  • DPI 96dpi (no scaling)

Diagnostics

@gerhardol
Copy link
Member

Adding to MS 3.1.0, but prio is low (probably easy to fix though).

@RussKie RussKie added type: regression regression, normally to latest official release up-for-grabs Easy tasks for those looking to get involved. Refer to https://up-for-grabs.net/ labels Jan 11, 2019
@DCFerg
Copy link
Contributor Author

DCFerg commented Jan 14, 2019

I have the fix. I'll put a PR in soon. Fix should be based on the 3.0 release branch, right?

@RussKie
Copy link
Member

RussKie commented Jan 14, 2019

No, please send the PR to master as it will be released as 3.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤓 good first issue status: reproducible type: bug 🐛 type: regression regression, normally to latest official release up-for-grabs Easy tasks for those looking to get involved. Refer to https://up-for-grabs.net/
Projects
None yet
Development

No branches or pull requests

3 participants