View menu icons fail to update #6086
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
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):
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:
...click "Show remote branches", "Show author date", and "Show relative date".
Resulting state is this:
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:
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
Diagnostics
The text was updated successfully, but these errors were encountered: