mirror of
https://github.com/boldsuck/haveno.git
synced 2024-12-22 20:19:21 +00:00
Prevent UI trading actions when there are no P2P connections.
This commit is contained in:
parent
a31cb74230
commit
6d8305c891
1 changed files with 4 additions and 5 deletions
|
@ -725,14 +725,13 @@ public class GUIUtil {
|
|||
}
|
||||
|
||||
public static boolean isBootstrappedOrShowPopup(P2PService p2PService) {
|
||||
if (!p2PService.isBootstrapped()) {
|
||||
if (p2PService.isBootstrapped() && p2PService.getNumConnectedPeers().get() > 0) {
|
||||
return true;
|
||||
}
|
||||
new Popup().information(Res.get("popup.warning.notFullyConnected")).show();
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public static boolean isReadyForTxBroadcastOrShowPopup(P2PService p2PService, CoreMoneroConnectionsService connectionService) {
|
||||
if (!GUIUtil.isBootstrappedOrShowPopup(p2PService)) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue