add dontShowAgain option to DAO resync popup

This commit is contained in:
jmacxx 2021-07-18 18:48:36 -05:00
parent 87261eca04
commit 6ea5af2a96
No known key found for this signature in database
GPG Key ID: 155297BABFE94A1B

View File

@ -761,12 +761,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) {