Wednesday, November 22, 2017

Policy Plus - Fixing things when refreshing

Today I noticed that there are a handful of other events in Policy Plus that should have the possibility of moving up the category tree if the current category no longer contains any policies visible under the filter. Fixing that was just a matter of replacing an UpdateCategoryListing call with one to MoveToVisibleCategoryAndReload.

I also noticed recently that OKing out of the setting editor dialog refreshes the category listing and puts the scrollbar back to the top, losing the focus on the selected policy. This is somewhat jarring, so today I fixed it. UpdateCategoryListing now preserves both the scroll position and the selected policy if the current category is unchanged.

These changes are live on GitHub.

No comments:

Post a Comment