-
Notifications
You must be signed in to change notification settings - Fork 64
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
Fixes #174. Changing Filter does not undo previously marked items #186
Conversation
Co-Authored-By: Tyler James Leonhardt <[email protected]>
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.
Looks pretty great! Just some small style fixes (sorry) and a question on the disposability of GridViewDataSource
.
|
||
if (_listViewSource != null) { | ||
_listViewSource.MarkChanged -= ListViewSource_MarkChanged; | ||
_listViewSource = null; |
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.
Just noting that I think we're relying on the garbage collector to dispose of the previously created _listViewSource
here. I think that's fine? If _listViewSource
is disposable, we should do that. I'm not sure if it is though...will find out soon I guess.
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.
Ok we're good! It is not Disposable
, it's an implementation of IListDataSource
(which is a simple interface with just primitives and methods) and it holds a List<GridViewRow>
which is managed only and thus not disposable.
PR Summary
Fixes #174.
PR Context
This addresses #174 (changing the filter caused marked items to get unmarked) by: