Merge pull request #6329 from jmacxx/prevent_trade_actions_no_network

Prevent UI trading actions when there are no P2P connections
This commit is contained in:
Christoph Atteneder 2022-08-19 10:59:29 +02:00 committed by GitHub
commit 4ced5d593c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -795,12 +795,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 void showDaoNeedsResyncPopup(Navigation navigation) {