minor account renaming bug fixes

This commit is contained in:
Craig Raw 2023-08-31 10:54:16 +02:00
parent ff1a9e8a52
commit c81aae0c6a
2 changed files with 9 additions and 0 deletions

View file

@ -2133,6 +2133,11 @@ public class AppController implements Initializable {
contextMenu.getItems().add(delete);
}
contextMenu.setOnShowing(event -> {
Wallet renameWallet = AppServices.get().getWallet(walletId);
rename.setDisable(!renameWallet.isValid());
});
return contextMenu;
}

View file

@ -597,6 +597,10 @@ public class WalletForm {
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());
}
}
}