mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2026-08-11 09:08:02 +00:00
minor account renaming bug fixes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user