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

Reset revision filter when switching repos #9477

Merged
merged 3 commits into from Aug 12, 2021

Conversation

RussKie
Copy link
Member

@RussKie RussKie commented Aug 11, 2021

Closes #3153


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

@ghost ghost assigned RussKie Aug 11, 2021
Copy link
Member

@gerhardol gerhardol left a comment

Choose a reason for hiding this comment

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

The issue reports on the Advanced filter, paths, but the PR handles the toolbar revision filter. The revision is also relevant though.

However, I have made the path filter change in #9445, will adopt that to all items and push to this branch.

@@ -1978,6 +1978,7 @@ private void SetGitModule(object sender, GitModuleEventArgs e)
_gitStatusMonitor.InvalidateGitWorkingDirectoryStatus();
_submoduleStatusProvider.Init();
ToolStripFilters.SetBranchFilter(string.Empty, refresh: false);
ToolStripFilters.SetRevisionFilter(string.Empty);
Copy link
Member

Choose a reason for hiding this comment

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

Note for other reviewers: revision filters can be set at FormBrowse startup (as command lind arguments), but SetGitModule() does not execute at startup so filters are not cleared.

@RussKie
Copy link
Member Author

RussKie commented Aug 12, 2021

Thank you, I was mostly oblivious about other filter dialogs 👍

@RussKie RussKie merged commit d8ddc1f into gitextensions:master Aug 12, 2021
@RussKie RussKie deleted the fix_3153_clear_revision_filter branch August 12, 2021 03:31
@ghost ghost added this to the 3.6 milestone Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clear "file filter" when I switch repository
2 participants