-
Notifications
You must be signed in to change notification settings - Fork 565
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
Move showTrash from appState to Redux #1901
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.
Trash is an odd view. It's not globally boolean, since obviously the tag drawer needs to be open in order to see it. It's not a tag even though it acts like one. It's not really a pane so it's surprising to see it in visiblePanes
Did you consider putting it anywhere else? It's somewhat of a global mode since it governs the buttons too. What do you think would be the tradeoffs of keeping it as a global boolean?
This patch introduces a new set utility library for adding, removing, and toggling values in a set to make a working "option bag." It also changes the `visiblePane` state from a list of strings into this new option bag, removing the reliance on the `lodash` equivalent functions for using the array. This is meant to be precursor work for #1901 and #1903
d14afd2
to
ae5eefb
Compare
ae5eefb
to
0f65ce5
Compare
ad6afca
to
a6b46fb
Compare
899532c
to
74d6742
Compare
Fix
Requires: #1866 for
CREATE_NOTE
Test
We do need
CREATE_NOTE
since you can create a new note from the system menu in Electron