From ccf4e98968493eddfee83e5e330da5360e40c369 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Tue, 18 Aug 2020 10:47:32 +0200 Subject: [PATCH] ellipsis and incomplete wallet background save fixes --- .../sparrow/control/MnemonicKeystoreImportPane.java | 6 +++--- .../com/sparrowwallet/sparrow/control/WelcomeDialog.java | 2 +- .../java/com/sparrowwallet/sparrow/wallet/WalletForm.java | 5 ++++- .../com/sparrowwallet/sparrow/preferences/general.fxml | 2 +- .../resources/com/sparrowwallet/sparrow/wallet/send.fxml | 2 +- 5 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/control/MnemonicKeystoreImportPane.java b/src/main/java/com/sparrowwallet/sparrow/control/MnemonicKeystoreImportPane.java index 3e61cfd8..0dc6691f 100644 --- a/src/main/java/com/sparrowwallet/sparrow/control/MnemonicKeystoreImportPane.java +++ b/src/main/java/com/sparrowwallet/sparrow/control/MnemonicKeystoreImportPane.java @@ -155,11 +155,11 @@ public class MnemonicKeystoreImportPane extends TitledDescriptionPane { if(!displayWordsOnly) { PassphraseEntry passphraseEntry = new PassphraseEntry(); - passphraseEntry.setPadding(new Insets(0, 32, 10, 10)); + passphraseEntry.setPadding(new Insets(0, 26, 10, 10)); vBox.getChildren().add(passphraseEntry); AnchorPane buttonPane = new AnchorPane(); - buttonPane.setPadding(new Insets(0, 32, 0, 10)); + buttonPane.setPadding(new Insets(0, 26, 0, 10)); generateButton = new Button("Generate New"); generateButton.setOnAction(event -> { @@ -345,7 +345,7 @@ public class MnemonicKeystoreImportPane extends TitledDescriptionPane { setSpacing(10); Label label = new Label((wordNumber+1) + "."); - label.setPrefWidth(20); + label.setPrefWidth(22); label.setAlignment(Pos.CENTER_RIGHT); wordField = new TextField(); wordField.setMaxWidth(100); diff --git a/src/main/java/com/sparrowwallet/sparrow/control/WelcomeDialog.java b/src/main/java/com/sparrowwallet/sparrow/control/WelcomeDialog.java index 6cb9fe5b..83a446b9 100644 --- a/src/main/java/com/sparrowwallet/sparrow/control/WelcomeDialog.java +++ b/src/main/java/com/sparrowwallet/sparrow/control/WelcomeDialog.java @@ -29,7 +29,7 @@ public class WelcomeDialog extends Dialog { dialogPane.setHeaderText("Welcome to Sparrow!"); dialogPane.getStylesheets().add(AppController.class.getResource("general.css").toExternalForm()); dialogPane.setPrefWidth(600); - dialogPane.setPrefHeight(450); + dialogPane.setPrefHeight(480); Image image = new Image("image/sparrow-small.png", 50, 50, false, false); if (!image.isError()) { diff --git a/src/main/java/com/sparrowwallet/sparrow/wallet/WalletForm.java b/src/main/java/com/sparrowwallet/sparrow/wallet/WalletForm.java index 3408b072..04e495be 100644 --- a/src/main/java/com/sparrowwallet/sparrow/wallet/WalletForm.java +++ b/src/main/java/com/sparrowwallet/sparrow/wallet/WalletForm.java @@ -199,7 +199,10 @@ public class WalletForm { @Subscribe public void newBlock(NewBlockEvent event) { - updateWallet(wallet.copy(), event.getHeight()); + //Check if wallet is valid to avoid saving wallets in initial setup + if(wallet.isValid()) { + updateWallet(wallet.copy(), event.getHeight()); + } } @Subscribe diff --git a/src/main/resources/com/sparrowwallet/sparrow/preferences/general.fxml b/src/main/resources/com/sparrowwallet/sparrow/preferences/general.fxml index b8c5ff5b..7c4f569b 100644 --- a/src/main/resources/com/sparrowwallet/sparrow/preferences/general.fxml +++ b/src/main/resources/com/sparrowwallet/sparrow/preferences/general.fxml @@ -63,7 +63,7 @@ - + diff --git a/src/main/resources/com/sparrowwallet/sparrow/wallet/send.fxml b/src/main/resources/com/sparrowwallet/sparrow/wallet/send.fxml index 26442b4e..8536609b 100644 --- a/src/main/resources/com/sparrowwallet/sparrow/wallet/send.fxml +++ b/src/main/resources/com/sparrowwallet/sparrow/wallet/send.fxml @@ -63,7 +63,7 @@
- +