Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Fix clearing navigation history with >10 pages. #1437

Merged
merged 2 commits into from
Jan 31, 2018

Conversation

grokys
Copy link
Contributor

@grokys grokys commented Jan 30, 2018

#1436 is a bug whereby clearing the GitHub pane navigation history (by moving to a new project) when there are more than 10 items in the history caused an exception.

We need to handle Reset collection events on the Changing handler so that we can get to the items before they're removed from the collection and Dispose them.

Fixes #1436.

We need to handle `Reset` collection events on the `Changing` handler so that we can get to the items before they're removed from the collection and `Dispose` them.
@meaghanlewis
Copy link
Contributor

This fix LGTM 👍

Copy link
Collaborator

@jcansdale jcansdale left a comment

Choose a reason for hiding this comment

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

I've tested and debugged through this and it looks good to me. LGTM!

@jcansdale jcansdale merged commit 3b3ee04 into master Jan 31, 2018
@jcansdale jcansdale deleted the fixes/1436-navigationviewmodel-history-reset branch January 31, 2018 11:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants