-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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 not updating the nav view when add/removing profiles #15162
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bigQs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this also fix the issue where Save/Discard lose track of what profile you're looking at?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
above
_menuItemSource.Clear(); | ||
// now, just stick them back in. | ||
_menuItemSource.ReplaceAll(menuItemsSTL); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ReplaceAll implies Clear, which suggests the Clear is either BODGY
or redundant! Which is it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question here.
I love that I can pull the unpackaged distribution from your build and just run it as-is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested scenarios:
- new profile
- discard with selection
- save with selection
- save json outside of app
- delete profile
- delete profile in json while it is selected
The only issue I had was that it forgot the nav view scroll position... but that's better than crashing. |
_menuItemSource.Clear(); | ||
// now, just stick them back in. | ||
_menuItemSource.ReplaceAll(menuItemsSTL); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question here.
Regressed in #14630
Closes #15140
Manually validated that this and #13673 are still fixed