mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
add dontShowAgain option to DAO resync popup
This commit is contained in:
parent
87261eca04
commit
6ea5af2a96
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user