Browse Source

recieve fixes

bwt
Craig Raw 5 years ago
parent
commit
8aa9d15620
  1. 2
      src/main/java/com/sparrowwallet/sparrow/wallet/ReceiveController.java
  2. 4
      src/main/resources/com/sparrowwallet/sparrow/wallet/receive.css
  3. 4
      src/main/resources/com/sparrowwallet/sparrow/wallet/receive.fxml

2
src/main/java/com/sparrowwallet/sparrow/wallet/ReceiveController.java

@ -164,7 +164,7 @@ public class ReceiveController extends WalletFormController implements Initializ
@Subscribe
public void walletHistoryChanged(WalletHistoryChangedEvent event) {
if(event.getWallet().equals(walletForm.getWallet())) {
if(event.getHistoryChangedNodes().contains(currentEntry.getNode())) {
if(currentEntry != null && event.getHistoryChangedNodes().contains(currentEntry.getNode())) {
updateLastUsed();
}
}

4
src/main/resources/com/sparrowwallet/sparrow/wallet/receive.css

@ -10,4 +10,8 @@
.receive-form .form .fieldset:horizontal .label-container {
-fx-pref-width: 90px;
-fx-pref-height: 25px;
}
#lastUsedField .input-container {
-fx-alignment: center-left;
}

4
src/main/resources/com/sparrowwallet/sparrow/wallet/receive.fxml

@ -42,8 +42,8 @@
<Field text="Derivation:">
<CopyableLabel fx:id="derivationPath" />
</Field>
<Field text="Last Used:">
<Label fx:id="lastUsed" />
<Field fx:id="lastUsedField" text="Last Used:">
<Label fx:id="lastUsed" contentDisplay="RIGHT" />
</Field>
</Fieldset>
</Form>

Loading…
Cancel
Save