Merge pull request #5628 from jmacxx/warn_user_dao_out_of_sync

Add don't show again option to DAO resync popup
This commit is contained in:
Christoph Atteneder 2021-07-19 09:28:31 +02:00 committed by GitHub
commit 1c5b5a8ced
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -795,12 +795,16 @@ public class GUIUtil {
}
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) {