mirror of
https://github.com/bisq-network/bisq.git
synced 2025-03-03 18:56:59 +01:00
Prevent UI trading actions when there are no P2P connections.
This commit is contained in:
parent
423d57ae24
commit
ac04c97219
1 changed files with 4 additions and 5 deletions
|
@ -795,14 +795,13 @@ public class GUIUtil {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isBootstrappedOrShowPopup(P2PService p2PService) {
|
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();
|
new Popup().information(Res.get("popup.warning.notFullyConnected")).show();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void showDaoNeedsResyncPopup(Navigation navigation) {
|
public static void showDaoNeedsResyncPopup(Navigation navigation) {
|
||||||
String key = "showDaoNeedsResyncPopup";
|
String key = "showDaoNeedsResyncPopup";
|
||||||
if (DontShowAgainLookup.showAgain(key)) {
|
if (DontShowAgainLookup.showAgain(key)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue