Prevent UI trading actions when there are no P2P connections.

This commit is contained in:
jmacxx 2022-08-18 10:50:27 -05:00
parent 423d57ae24
commit ac04c97219
No known key found for this signature in database
GPG key ID: 155297BABFE94A1B

View file

@ -795,14 +795,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 void showDaoNeedsResyncPopup(Navigation navigation) {
String key = "showDaoNeedsResyncPopup";
if (DontShowAgainLookup.showAgain(key)) {