Skip to content

Commit

Permalink
minor account renaming bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
craigraw committed Aug 31, 2023
1 parent ff1a9e8 commit c81aae0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/com/sparrowwallet/sparrow/AppController.java
Original file line number Diff line number Diff line change
Expand Up @@ -2133,6 +2133,11 @@ private ContextMenu getSubTabContextMenu(Storage storage, Wallet wallet, TabPane
contextMenu.getItems().add(delete);
}

contextMenu.setOnShowing(event -> {
Wallet renameWallet = AppServices.get().getWallet(walletId);
rename.setDisable(!renameWallet.isValid());
});

return contextMenu;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,10 @@ public void walletUtxoMixesChanged(WalletUtxoMixesChangedEvent event) {
public void walletLabelChanged(WalletLabelChangedEvent event) {
if(event.getWallet() == wallet) {
Platform.runLater(() -> EventManager.get().post(new WalletDataChangedEvent(wallet)));

if(walletTransactionsEntry != null) {
walletTransactionsEntry.labelProperty().set(event.getWallet().getDisplayName());
}
}
}

Expand Down

0 comments on commit c81aae0

Please sign in to comment.