Prevent UI trading actions when there are no P2P connections.
This commit is contained in:
parent
a31cb74230
commit
6d8305c891
@ -725,12 +725,11 @@ public class GUIUtil {
|
||||
}
|
||||
|
||||
public static boolean isBootstrappedOrShowPopup(P2PService p2PService) {
|
||||
if (!p2PService.isBootstrapped()) {
|
||||
new Popup().information(Res.get("popup.warning.notFullyConnected")).show();
|
||||
return false;
|
||||
if (p2PService.isBootstrapped() && p2PService.getNumConnectedPeers().get() > 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return true;
|
||||
new Popup().information(Res.get("popup.warning.notFullyConnected")).show();
|
||||
return false;
|
||||
}
|
||||
|
||||
public static boolean isReadyForTxBroadcastOrShowPopup(P2PService p2PService, CoreMoneroConnectionsService connectionService) {
|
||||
|
Loading…
Reference in New Issue
Block a user