Skip to content
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

gui(installer): allow deletion of any primary key and prevent deletion of all recovery paths #1566

Conversation

jp1ac4
Copy link
Collaborator

@jp1ac4 jp1ac4 commented Feb 10, 2025

This is to fix #1411 and #1407, which relate to whether primary or recovery keys, respectively, can be deleted in the installer.

It lets a user delete any primary key as long as there are two or more.

It lets a user delete a key from a recovery path only if there are at least two recovery paths or at least two keys in the given recovery path.

@jp1ac4
Copy link
Collaborator Author

jp1ac4 commented Feb 10, 2025

I pass the number of recovery paths as a separate parameter in order not to consume the iterator, but perhaps this could be done differently, e.g. collecting the iterator items into a Vec.

@jp1ac4 jp1ac4 self-assigned this Feb 10, 2025
@jp1ac4 jp1ac4 changed the title gui(installer): prevent deletion of all recovery paths gui(installer): allow deletion of any primary key and prevent deletion of all recovery paths Feb 10, 2025
Copy link
Member

@edouardparis edouardparis left a comment

Choose a reason for hiding this comment

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

ACK 99ba17d

@edouardparis edouardparis merged commit 4dc10d1 into wizardsardine:master Feb 10, 2025
12 checks passed
@jp1ac4 jp1ac4 deleted the gui-installer-at-least-one-recovery-path branch February 10, 2025 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Installer - Have a delete icon for all primary keys if more than one is set
2 participants