From 9da395c5bbab5e321b4fa60e392d4f0f46c51124 Mon Sep 17 00:00:00 2001 From: woodser Date: Tue, 14 Nov 2023 09:57:23 -0500 Subject: [PATCH] don't show trade period popups for arbitrator --- desktop/src/main/java/haveno/desktop/main/MainViewModel.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/desktop/src/main/java/haveno/desktop/main/MainViewModel.java b/desktop/src/main/java/haveno/desktop/main/MainViewModel.java index 4191011273..7ccb1968b6 100644 --- a/desktop/src/main/java/haveno/desktop/main/MainViewModel.java +++ b/desktop/src/main/java/haveno/desktop/main/MainViewModel.java @@ -44,6 +44,7 @@ import haveno.core.presentation.BalancePresentation; import haveno.core.presentation.SupportTicketsPresentation; import haveno.core.presentation.TradePresentation; import haveno.core.provider.price.PriceFeedService; +import haveno.core.trade.ArbitratorTrade; import haveno.core.trade.TradeManager; import haveno.core.user.DontShowAgainLookup; import haveno.core.user.Preferences; @@ -236,6 +237,7 @@ public class MainViewModel implements ViewModel, HavenoSetup.HavenoSetupListener key = "displayHalfTradePeriodOver" + trade.getId(); if (DontShowAgainLookup.showAgain(key)) { DontShowAgainLookup.dontShowAgain(key, true); + if (trade instanceof ArbitratorTrade) break; // skip popup if arbitrator trade new Popup().warning(Res.get("popup.warning.tradePeriod.halfReached", trade.getShortId(), DisplayUtils.formatDateTime(maxTradePeriodDate))) @@ -246,6 +248,7 @@ public class MainViewModel implements ViewModel, HavenoSetup.HavenoSetupListener key = "displayTradePeriodOver" + trade.getId(); if (DontShowAgainLookup.showAgain(key)) { DontShowAgainLookup.dontShowAgain(key, true); + if (trade instanceof ArbitratorTrade) break; // skip popup if arbitrator trade new Popup().warning(Res.get("popup.warning.tradePeriod.ended", trade.getShortId(), DisplayUtils.formatDateTime(maxTradePeriodDate)))