allow withraw without p2p connection

This commit is contained in:
woodser 2023-08-10 11:46:12 -04:00
parent e450db1ec5
commit 5b50a553b4
3 changed files with 3 additions and 7 deletions

View file

@ -165,7 +165,7 @@ public class WithdrawalView extends ActivatableView<VBox, Void> {
///////////////////////////////////////////////////////////////////////////////////////////
private void onWithdraw() {
if (GUIUtil.isReadyForTxBroadcastOrShowPopup(p2PService, xmrWalletService.getConnectionsService())) {
if (GUIUtil.isReadyForTxBroadcastOrShowPopup(xmrWalletService.getConnectionsService())) {
try {
// get withdraw address

View file

@ -548,7 +548,7 @@ public class PendingTradesDataModel extends ActivatableDataModel {
}
public boolean isReadyForTxBroadcast() {
return GUIUtil.isReadyForTxBroadcastOrShowPopup(p2PService, connectionService);
return GUIUtil.isBootstrappedOrShowPopup(p2PService) && GUIUtil.isReadyForTxBroadcastOrShowPopup(connectionService);
}
public boolean isBootstrappedOrShowPopup() {