Skip to content

Commit

Permalink
Merge pull request #5628 from jmacxx/warn_user_dao_out_of_sync
Browse files Browse the repository at this point in the history
Add don't show again option to DAO resync popup
  • Loading branch information
ripcurlx authored Jul 19, 2021
2 parents c2b0ca9 + 6ea5af2 commit 1c5b5a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion desktop/src/main/java/bisq/desktop/util/GUIUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -795,12 +795,16 @@ public static boolean isBootstrappedOrShowPopup(P2PService p2PService) {
}

public static void showDaoNeedsResyncPopup(Navigation navigation) {
UserThread.runAfter(() -> new Popup().warning(Res.get("popup.warning.daoNeedsResync"))
String key = "showDaoNeedsResyncPopup";
if (DontShowAgainLookup.showAgain(key)) {
UserThread.runAfter(() -> new Popup().warning(Res.get("popup.warning.daoNeedsResync"))
.dontShowAgainId(key)
.actionButtonTextWithGoTo("navigation.dao.networkMonitor")
.onAction(() -> {
navigation.navigateTo(MainView.class, DaoView.class, MonitorView.class, DaoStateMonitorView.class);
})
.show(), 5, TimeUnit.SECONDS);
}
}

public static boolean isReadyForTxBroadcastOrShowPopup(P2PService p2PService, WalletsSetup walletsSetup) {
Expand Down

0 comments on commit 1c5b5a8

Please sign in to comment.