Skip to content

Conversation

jiejasonliu
Copy link
Contributor

Resolved / Related Issues

Details of Changes

  • Make adds to SidebarItems (model) and sidebarList (UI list) atomic (otherwise model and UI desync)
  • Eliminate unnecessary refreshes by serializing model to configContent after every save
    • suppressChangeEvent wasn't a good solution; Query_ContentChanged could be handled very late after many saves
  • Refactor AddItemToSidebarAsync to reuse existing methods

Validation

  • Built and ran the app
  • Tested the changes for accessibility

Screenshots (optional)

(notice how add order is consistent instead of random)
Files-8941

@yaira2 yaira2 requested a review from gave92 May 8, 2022 02:04
Copy link
Member

@gave92 gave92 left a comment

Choose a reason for hiding this comment

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

Nice, thanks!

@gave92 gave92 added ready to merge Pull requests that are approved and ready to merge and removed needs - code review labels May 8, 2022
@yaira2 yaira2 merged commit 50f5ab8 into files-community:main May 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Pull requests that are approved and ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Item disappearing from the favorite section
3 participants