disable the terminal add account button when no accounts remain to add
What changed, and why it matters
This commit simply disables the 'Add Account' button in the terminal version of Sparrow Wallet when there are no accounts left to add. It is a minor user-interface improvement to prevent a user from clicking a button that would have no effect. There is no security issue here.
No security action needed. Treat as a normal UI fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
A single line was added in AddAccountDialog.java to call okButton.setEnabled(!availableAccounts.isEmpty()). This greys out or disables the ‘Add Account’ button when the availableAccounts list is empty. It is a UI state fix with no cryptographic, input-validation, or access-control implications.
Changed components
src/main/java/com/sparrowwallet/sparrow/terminal/wallet/AddAccountDialog.javaInspect captured patch +1 / −0
### src/main/java/com/sparrowwallet/sparrow/terminal/wallet/AddAccountDialog.java
@@ -57,6 +57,7 @@ public AddAccountDialog(Wallet wallet) {
buttonPanel.setLayoutManager(new GridLayout(2).setHorizontalSpacing(1));
buttonPanel.addComponent(new Button("Cancel", this::onCancel));
Button okButton = new Button("Add Account", this::addAccount).setLayoutData(GridLayout.createLayoutData(GridLayout.Alignment.CENTER, GridLayout.Alignment.CENTER, true, false));
+ okButton.setEnabled(!availableAccounts.isEmpty());
buttonPanel.addComponent(okButton);
mainPanel.addComponent(new EmptySpace(TerminalSize.ONE));Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.