mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-04 21:36:45 +00:00
minor account renaming bug fixes
This commit is contained in:
parent
ff1a9e8a52
commit
c81aae0c6a
2 changed files with 9 additions and 0 deletions
|
@ -2133,6 +2133,11 @@ public class AppController implements Initializable {
|
||||||
contextMenu.getItems().add(delete);
|
contextMenu.getItems().add(delete);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
contextMenu.setOnShowing(event -> {
|
||||||
|
Wallet renameWallet = AppServices.get().getWallet(walletId);
|
||||||
|
rename.setDisable(!renameWallet.isValid());
|
||||||
|
});
|
||||||
|
|
||||||
return contextMenu;
|
return contextMenu;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -597,6 +597,10 @@ public class WalletForm {
|
||||||
public void walletLabelChanged(WalletLabelChangedEvent event) {
|
public void walletLabelChanged(WalletLabelChangedEvent event) {
|
||||||
if(event.getWallet() == wallet) {
|
if(event.getWallet() == wallet) {
|
||||||
Platform.runLater(() -> EventManager.get().post(new WalletDataChangedEvent(wallet)));
|
Platform.runLater(() -> EventManager.get().post(new WalletDataChangedEvent(wallet)));
|
||||||
|
|
||||||
|
if(walletTransactionsEntry != null) {
|
||||||
|
walletTransactionsEntry.labelProperty().set(event.getWallet().getDisplayName());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue