mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-24 12:46:45 +00:00
remove whirlpool child wallets from sweep to list
This commit is contained in:
parent
f75b4582c8
commit
72b15967cc
1 changed files with 2 additions and 1 deletions
|
@ -43,6 +43,7 @@ import java.nio.charset.StandardCharsets;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import static com.sparrowwallet.drongo.protocol.ScriptType.P2TR;
|
import static com.sparrowwallet.drongo.protocol.ScriptType.P2TR;
|
||||||
|
|
||||||
|
@ -122,7 +123,7 @@ public class PrivateKeySweepDialog extends Dialog<Transaction> {
|
||||||
toAddress = new ComboBoxTextField();
|
toAddress = new ComboBoxTextField();
|
||||||
toAddress.getStyleClass().add("fixed-width");
|
toAddress.getStyleClass().add("fixed-width");
|
||||||
toWallet = new ComboBox<>();
|
toWallet = new ComboBox<>();
|
||||||
toWallet.setItems(FXCollections.observableList(new ArrayList<>(AppServices.get().getOpenWallets().keySet())));
|
toWallet.setItems(FXCollections.observableList(AppServices.get().getOpenWallets().keySet().stream().filter(w -> !w.isWhirlpoolChildWallet()).collect(Collectors.toList())));
|
||||||
toAddress.setComboProperty(toWallet);
|
toAddress.setComboProperty(toWallet);
|
||||||
toWallet.prefWidthProperty().bind(toAddress.widthProperty());
|
toWallet.prefWidthProperty().bind(toAddress.widthProperty());
|
||||||
StackPane stackPane = new StackPane();
|
StackPane stackPane = new StackPane();
|
||||||
|
|
Loading…
Reference in a new issue